/* Shared Components CSS
 * Common UI components used across multiple templates
 * This file should be included in all templates for consistency
 */

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


.footer {
    margin-top: auto;
    padding: 2rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand .brand {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.footer-version {
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-link:hover {
    color: rgb(99, 102, 241);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===== BUTTONS ===== */

/* Primary Button - Main action buttons */
.btn-primary {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background-color: rgb(99, 102, 241);
    color: white;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: rgb(79, 82, 221);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.35);
}

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

/* Secondary Button - Alternative actions */
.btn-secondary {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid rgb(99, 102, 241);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background-color: white;
    color: rgb(99, 102, 241);
}

.btn-secondary:hover {
    background-color: rgb(99, 102, 241);
    color: white;
    transform: translateY(-2px);
}

/* Success Button - Positive actions */
.btn-success {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background-color: #22c55e;
    color: white;
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.25);
}

.btn-success:hover {
    transform: translateY(-2px);
    background-color: #16a34a;
    box-shadow: 0 6px 15px rgba(34, 197, 94, 0.35);
}

/* Danger Button - Destructive actions */
.btn-danger {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background-color: #ef4444;
    color: white;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    transform: translateY(-2px);
    background-color: #dc2626;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.35);
}

/* Warning Button - Caution actions */
.btn-warning {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background-color: #f59e0b;
    color: white;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.25);
}

.btn-warning:hover {
    transform: translateY(-2px);
    background-color: #d97706;
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.35);
}

/* Icon Button - Buttons with icons */
.btn-icon {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background-color: rgb(99, 102, 241);
    color: white;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
}

.btn-icon:hover {
    transform: translateY(-2px);
    background-color: rgb(79, 82, 221);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.35);
}

.btn-icon .material-icons {
    font-size: 1.25rem;
}

/* ===== MODALS & OVERLAYS ===== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

/* Modal Title */
.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
}

/* Modal Message */
.modal-message {
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Modal Buttons - Standardized overlay button system */
.modal-btn {
    /* Base modal button styling */
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Cancel button - Secondary action */
.modal-btn.cancel {
    background-color: white;
    color: rgb(99, 102, 241);
    border: 2px solid rgb(99, 102, 241);
}

.modal-btn.cancel:hover {
    background-color: rgb(99, 102, 241);
    color: white;
    transform: translateY(-2px);
}

/* Proceed button - Primary action (can be styled contextually) */
.modal-btn.proceed {
    background-color: rgb(99, 102, 241);
    color: white;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
}

.modal-btn.proceed:hover {
    transform: translateY(-2px);
    background-color: rgb(79, 82, 221);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.35);
}

/* Contextual proceed button variants */
.modal-btn.proceed.success {
    background-color: #22c55e;
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.25);
}

.modal-btn.proceed.success:hover {
    background-color: #16a34a;
    box-shadow: 0 6px 15px rgba(34, 197, 94, 0.35);
}

.modal-btn.proceed.danger {
    background-color: #ef4444;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.25);
}

.modal-btn.proceed.danger:hover {
    background-color: #dc2626;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.35);
}

.modal-btn.proceed.warning {
    background-color: #f59e0b;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.25);
}

.modal-btn.proceed.warning:hover {
    background-color: #d97706;
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.35);
}

/* Disabled button styling */
.modal-btn.disabled {
    color: white !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    cursor: not-allowed !important;
    background: rgba(99, 102, 241, 0.35) !important;; 
}

.modal-btn.disabled:hover {
    color: white !important;
    background: rgba(99, 102, 241, 0.35) !important;; 
    cursor: not-allowed !important;
    transform: none !important;
}

/* ===== FORMS ===== */

/* Form Group */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Form Label */
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

/* Form Description */
.form-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* Form Input */
.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(99, 102, 241, 0.03);
    transition: all 0.3s ease;
    color: #1a202c;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: rgb(99, 102, 241);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Form Select with dropdown arrow */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(99, 102, 241, 0.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ===== NOTIFICATIONS ===== */

/* Notification */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    font-weight: 600;
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
}

.notification.success {
    background: #22c55e;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.notification.error {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.notification.info {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.notification.warning {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ===== BADGES ===== */

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.badge.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge.info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ===== ANIMATIONS ===== */

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== UTILITY CLASSES ===== */

/* Text colors */
.text-primary { color: rgb(99, 102, 241); }
.text-success { color: #22c55e; }
.text-error { color: #ef4444; }
.text-warning { color: #f59e0b; }
.text-info { color: #3b82f6; }
.text-muted { color: #6b7280; }

/* Background colors */
.bg-primary { background-color: rgb(99, 102, 241); }
.bg-success { background-color: #22c55e; }
.bg-error { background-color: #ef4444; }
.bg-warning { background-color: #f59e0b; }
.bg-info { background-color: #3b82f6; }
.bg-muted { background-color: #f3f4f6; }

/* Spacing */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Font weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Border radius */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); } 

.logout-btn {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background-color: rgb(99, 102, 241);
    color: white;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
}

.logout-btn:hover {
    transform: translateY(-2px);
    background-color: rgb(79, 82, 221);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.35);
} 

/* === Footer Brand Baseline Alignment === */
.footer-brand {
    align-items: baseline;
}
.footer-brand .brand img {
    height: 1.5em;
    vertical-align: baseline;
    display: inline-block;
} 

/* === Footer Brand Visual Alignment Adjustment === */
.footer-brand {
    align-items: flex-end;
}
.footer-brand .brand img {
    height: 1.5em;
    vertical-align: middle;
    display: inline-block;
    margin-bottom: 0.1em;
} 

/* === Dashboard Container Shared Layout === */
.dashboard-container {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 768px) {
    .dashboard-container {
        padding: 2rem;
    }
} 