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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header Styles */
.header {
    background-color: #c41e3a;
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Sub-header Styles */
.sub-header {
    background-color: #ffb3ba;
    color: white;
    padding: 20px 0;
}

.sub-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb i {
    font-size: 16px;
}

.page-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
}

.edit-link {
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.edit-link:hover {
    background-color: #357abd;
}

.breadcrumb-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.breadcrumb-link:hover {
    opacity: 0.8;
}

/* Edit Form Styles */
.edit-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.edit-form-card {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.policy-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

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

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.submit-btn {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #e55a2b;
}

.cancel-btn {
    background-color: #666;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cancel-btn:hover {
    background-color: #555;
}

.edit-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 15px;
}

.edit-btn:hover {
    background-color: #357abd;
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.policy-card {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Policy Header */
.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.policy-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.policy-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.policy-details h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.policy-type {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.status-badge {
    background-color: #ff6b35;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    animation: badgeBlink 2s infinite;
}

@keyframes badgeBlink {
    0%, 50% {
        background-color: #ff6b35;
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    }
    51%, 100% {
        background-color: #ff8c42;
        box-shadow: 0 0 15px rgba(255, 140, 66, 0.7);
    }
}

/* Policy Content - Two Column Layout */
.policy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.column-left,
.column-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.amount,
.value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.balance-note,
.tax-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin: 0;
}

.action-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.action-button:hover {
    background-color: #555;
}

.info-section {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
}

.warning-icon {
    width: 20px;
    height: 20px;
    background-color: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.warning-text p {
    font-size: 12px;
    color: #666;
    margin: 0 0 2px 0;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% {
        color: #ff6b35;
    }
    51%, 100% {
        color: #666;
    }
}

.info-icon {
    color: #4a90e2;
    margin-left: 5px;
    font-size: 14px;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .sub-header-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .policy-card {
        padding: 20px;
    }
    
    .policy-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .policy-info {
        width: 100%;
    }
    
    .status-badge {
        align-self: flex-start;
    }
    
    .policy-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .balance-amount {
        font-size: 28px;
    }
    
    .amount,
    .value {
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .edit-form-container {
        padding: 20px 15px;
    }
    
    .edit-form-card {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .submit-btn,
    .cancel-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 50px;
    }
    
    .logo-circle {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .sub-header {
        padding: 15px 0;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .policy-card {
        padding: 15px;
    }
    
    .policy-details h2 {
        font-size: 20px;
    }
    
    .balance-amount {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 12px;
    }
    
    .amount,
    .value {
        font-size: 14px;
    }
    
    .action-button {
        padding: 10px 20px;
        font-size: 11px;
    }
}

/* Tablet Responsive Design */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        padding: 25px;
    }
    
    .policy-card {
        padding: 25px;
    }
    
    .policy-content {
        gap: 35px;
    }
    
    .balance-amount {
        font-size: 32px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .main-content {
        padding: 40px 20px;
    }
    
    .policy-card {
        padding: 40px;
    }
    
    .policy-content {
        gap: 50px;
    }
}
