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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #f3e8ff 100%);
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5rem;
    color: #1f2937;
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Statistics Cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #3b82f6;
}

.stat-left {
    color: #10b981;
}

.stat-right {
    color: #a855f7;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Card Container */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Search Section */
.search-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box {
    position: relative;
    width: 100%;
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-delete {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s;
    font-size: 1.25rem;
}

.btn-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Socks List */
#socksList {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.empty-message {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
    font-size: 1.125rem;
}

/* Sock Item Card */
.sock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid;
    transition: transform 0.2s;
}

.sock-item:hover {
    transform: translateY(-2px);
}

.sock-item.left {
    border-color: #86efac;
    background: #f0fdf4;
}

.sock-item.right {
    border-color: #d8b4fe;
    background: #faf5ff;
}

.sock-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sock-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sock-icon.left {
    background: #bbf7d0;
}

.sock-icon.right {
    background: #e9d5ff;
}

.sock-info {
    flex: 1;
}

.sock-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.sock-location {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.sock-side {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}