/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e5e5e5;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.header {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.3), transparent);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fed7aa;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

.time-display {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.user-btn {
    background: none;
    border: none;
    color: #fed7aa;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.user-btn:hover {
    color: #fdba74;
}

/* Main Content */
.main-content {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.empty-state {
    text-align: center;
    padding: 5rem 0;
}

.empty-text {
    color: #6b7280;
    font-size: 1.125rem;
}

.empty-subtext {
    color: #4b5563;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Cards Section */
.cards-section {
    margin-bottom: 2rem;
}

.section-title {
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: right;
    margin-bottom: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.card {
    position: relative;
    background-color: #252525;
    border-radius: 1px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: left;
    width: 100%;
    overflow: hidden;
}

.card:hover {
    background-color: #2d2d2d;
}

.card-title {
    color: #fdba74;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    color: #6b7280;
    font-size: 0.75rem;
    margin-bottom: 1.75rem;
}

.card-icon-container {
    position: absolute;
    bottom: 0.875rem;
    left: 1.25rem;
}

.card-icon {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    opacity: 0.5;
}

.card-icon-svg {
    width: 1rem;
    height: 1rem;
    color: #4b5563;
}

.card-hover-effect {
    position: absolute;
    inset: 0;
    border-radius: 1px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0), rgba(249, 115, 22, 0));
    transition: all 0.2s;
    pointer-events: none;
}

.card:hover .card-hover-effect {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(154, 52, 18, 0.05));
}

.separator {
    border-top: 1px solid rgba(154, 52, 18, 0.3);
    margin: 2rem 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #2a2a2a;
    border: 1px solid rgba(154, 52, 18, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    width: 90%;
    max-width: 425px;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.lock-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(154, 52, 18, 0.2);
    margin-bottom: 1rem;
}

.lock-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #fb923c;
}

.modal-title {
    color: #f3f4f6;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-description {
    color: #9ca3af;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.password-input-container {
    position: relative;
}

.form-input {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid rgba(154, 52, 18, 0.3);
    color: #f3f4f6;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #f97316;
}

.form-input::placeholder {
    color: #4b5563;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #d1d5db;
}

.eye-icon {
    width: 1rem;
    height: 1rem;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #4b5563;
    color: #d1d5db;
}

.btn-secondary:hover {
    background-color: #1a1a1a;
    color: #f3f4f6;
}

.btn-primary {
    background-color: #ea580c;
    color: white;
}

.btn-primary:hover {
    background-color: #c2410c;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s;
    z-index: 2000;
    max-width: 350px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: #065f46;
    color: #d1fae5;
}

.toast.error {
    background-color: #991b1b;
    color: #fecaca;
}
