:root {
    --primary-color: #404041;
    --secondary-color: #333333;
    --accent-color: #ff9900;
    --success-color: #8dc83f;
    --danger-color: #ff0000;
    --background-color: #f8fafc;
    --text-color: #333333;
    --text-muted: #777777;
    --white: #ffffff;
    --card-bg: #d9d8d9;
    --card-border: #e2e8f0;
	--input-background: #ffffff;
    --input-border: #e2e8f0;
    --table-border: #f1f5f9;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
    --background-color: #333333;
    --text-color: #ffffff;
    --text-muted: #888888;
    --card-bg: #444444;
    --card-border: #334155;
	--input-background: #999999;
    --input-border: #888888;
    --table-border: #334155;
    --white: #f8fafc;
    --card-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Layout */
header {
    background: var(--primary-color);
    color: #ffffff;
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 0px solid var(--accent-color);
    position: relative;
}

header h1 {
    color: #ffffff;
}

header p {
    color: rgba(255, 255, 255, 0.8);
}

.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: none;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
}
.logo {
	max-width:350px;
	width:100%;
	margin-top:-10px;	
}

nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 0px;
    flex-wrap: wrap;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 0.9rem;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
	
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-background);
    color: var(--text-color);
    font-size: 1rem;
}

button {
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

button:hover {
    background-color: #8dc83f;
    transform: translateY(-1px);
}

/* Grid for items */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s, border-color 0.3s;
}

/* Rating Smileys */
.rating-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.smiley-rating {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.smiley-rating input {
    display: none;
}

.smiley-rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.2s;
    margin-bottom: 0;
}

.smiley-rating label:hover,
.smiley-rating input:checked + label {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.btn-small {
    background: #e0e7ff;
    color: #4338ca;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-small:hover {
    background: #c7d2fe;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--table-border);
}

table th {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.voted-card {
    opacity: 0.8;
    background-color: var(--background-color);
}

.voted-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--success-color);
    font-weight: 600;
    padding: 20px 0;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
	.logo {
		max-width:150px;
		width:100%;
		margin-top:-10px;
	}

}

