/* ============================================
   COMPONENTS.CSS - Footer, Header, Buttons, Forms
   ============================================ */

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
    background: #2d3748;
    color: white;
    margin-top: 60px;
    border-top: 4px solid #E9CDCB;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px 30px 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    max-width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 14px;
    color: #cbd5e0;
    margin: 0;
    line-height: 1.6;
}

.footer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    color: #E9CDCB;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.footer-column p {
    font-size: 14px;
    color: #cbd5e0;
    line-height: 1.7;
    margin: 0;
}

.footer-bottom {
    background: #1a202c;
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: #a0aec0;
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        padding: 15px 20px;
    }
}

/* ============================================
   HEADER STYLES
   ============================================ */

.header {
    background: white;
    color: #333;
    padding: 25px 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-bottom: 3px solid #E9CDCB;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-logo {
    max-width: 160px;
    height: auto;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
    text-align: left;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 14px;
    color: #718096;
    margin: 0;
    font-weight: 400;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header {
        padding: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-text {
        text-align: center;
    }

    .header-logo {
        max-width: 120px;
    }
}

/* ============================================
   BUTTON STYLES
   ============================================ */

/* Primary Button */
.btn-primary {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #E9CDCB 0%, #ddb8b5 100%);
    color: #5f3b39;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(233, 205, 203, 0.3);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ddb8b5 0%, #d1a39f 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(233, 205, 203, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* View Detail Button */
.btn-view {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #E9CDCB 0%, #ddb8b5 100%);
    color: #5f3b39;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(233, 205, 203, 0.3);
    white-space: nowrap;
}

.btn-view:hover {
    background: linear-gradient(135deg, #ddb8b5 0%, #d1a39f 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(233, 205, 203, 0.4);
}

/* Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-back:hover {
    color: #E9CDCB;
}

.btn-back-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-back:hover .btn-back-icon {
    background: linear-gradient(135deg, #faf7f7 0%, #f5efee 100%);
}

/* Clear Filter Button */
.btn-clear-filter {
    font-size: 0.875rem;
    color: #b88480;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-clear-filter:hover {
    color: #9f6561;
}

/* ============================================
   FORM INPUT STYLES
   ============================================ */

/* Text Input */
.input-text {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    width: 100%;
}

.input-text:focus {
    border-color: #E9CDCB;
    box-shadow: 0 0 0 3px rgba(233, 205, 203, 0.2);
}

/* Date Input */
.input-date {
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    outline: none;
}

.input-date:focus {
    outline: none;
    border-color: #E9CDCB;
    box-shadow: 0 0 0 3px rgba(233, 205, 203, 0.2);
}

/* Select Input */
.select-input {
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    background-color: white;
    cursor: pointer;
    outline: none;
}

.select-input:focus {
    border-color: #E9CDCB;
}

/* Password Input */
.input-password {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.2s;
    outline: none;
}

.input-password:focus {
    border-color: #E9CDCB;
    box-shadow: 0 0 0 2px rgba(233, 205, 203, 0.2);
}

/* ============================================
   BADGE STYLES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-male {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-female {
    background-color: #fce7f3;
    color: #9d174d;
}

.badge-oily {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-dry {
    background-color: #f3f4f6;
    color: #374151;
}

.badge-normal {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-combination {
    background-color: #ede9fe;
    color: #5b21b6;
}

.badge-sensitive {
    background-color: #fee2e2;
    color: #991b1b;
}
