/* Data Breach Response Kit - Custom Styles */

/* Color Variables */
:root {
    --primary-orange: #FFA500;
    --cream-bg: #FFFDD0;
    --beige-content: #F5F5DC;
    --dark-text: #333333;
    --light-text: #666666;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    --info-blue: #17a2b8;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cream-bg);
    color: var(--dark-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.main-content {
    margin-top: 76px; /* Account for fixed navbar */
    min-height: calc(100vh - 76px);
}

/* Navigation Styles */
.navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-orange);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-orange) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #e6940a !important;
}

.navbar-brand i {
    color: var(--primary-orange);
}

.nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--beige-content);
    color: var(--primary-orange) !important;
    transform: translateY(-2px);
}

.nav-link i {
    margin-right: 0.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--cream-bg) 0%, var(--beige-content) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23FFA500" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-graphic {
    position: relative;
}

.hero-icon {
    font-size: 8rem;
    color: var(--primary-orange);
    opacity: 0.8;
    animation: pulse 2s infinite;
}

.floating-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.floating-icons i {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-orange);
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

.floating-icons i:nth-child(1) { top: 0; left: 50%; animation-delay: 0s; }
.floating-icons i:nth-child(2) { top: 50%; right: 0; animation-delay: 0.5s; }
.floating-icons i:nth-child(3) { bottom: 0; left: 50%; animation-delay: 1s; }
.floating-icons i:nth-child(4) { top: 50%; left: 0; animation-delay: 1.5s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e6940a;
    border-color: #e6940a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success-green);
    border-color: var(--success-green);
}

.btn-outline-success {
    border: 2px solid var(--success-green);
    color: var(--success-green);
}

.btn-outline-info {
    border: 2px solid var(--info-blue);
    color: var(--info-blue);
}

/* Section Styles */
.features-section,
.tools-section,
.cta-section {
    padding: 80px 0;
}

.features-section {
    background-color: var(--white);
}

.tools-section {
    background-color: var(--beige-content);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #e6940a 100%);
    color: var(--white);
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #e6940a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

/* Tool Cards */
.tool-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    border-left: 5px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.tool-header i {
    font-size: 2rem;
    margin-right: 1rem;
}

.tool-header h4 {
    margin: 0;
    color: var(--dark-text);
}

/* Checklist Styles */
.checklist-header {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.checklist-section {
    margin-bottom: 3rem;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.time-badge {
    background: var(--primary-orange);
    color: var(--white);
    padding: 1rem 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.time-badge i {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.hour-1 { background: var(--danger-red); }
.hour-2-6 { background: var(--warning-yellow); color: var(--dark-text); }
.hour-6-24 { background: var(--info-blue); }
.hour-24-72 { background: var(--success-green); }

.checklist-items {
    padding: 2rem;
}

.checklist-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.checklist-item:hover {
    border-color: var(--primary-orange);
    background-color: var(--light-gray);
}

.checklist-item.completed {
    background-color: #d4edda;
    border-color: var(--success-green);
}

.checklist-item .form-check-input {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 20px;
    height: 20px;
}

.checklist-item .form-check-label {
    width: calc(100% - 40px);
    cursor: pointer;
}

.checklist-item h5 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.checklist-item h5 i {
    margin-right: 0.5rem;
}

.progress-summary {
    background: var(--white);
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.progress {
    height: 15px;
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Template Styles */
.template-selector {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.template-category {
    margin-bottom: 2rem;
}

.template-category h5 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.list-group-item {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--beige-content);
    border-color: var(--primary-orange);
}

.list-group-item.active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
}

.welcome-card {
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px dashed var(--border-color);
}

.template-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.template-header {
    background: var(--beige-content);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.country-info {
    background: var(--white);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.template-body {
    padding: 2rem;
}

.template-pre {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    max-height: 500px;
    overflow-y: auto;
}

.usage-instructions {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.instruction-card {
    text-align: center;
    padding: 2rem;
    background: var(--beige-content);
    border-radius: 10px;
    height: 100%;
}

.instruction-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

/* Policy Styles */
.policy-actions {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.policy-document {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.policy-text {
    padding: 3rem;
    white-space: pre-wrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    background: var(--light-gray);
    margin: 0;
}

.customization-panel {
    background: var(--beige-content);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.section-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.section-card:hover {
    background-color: var(--beige-content);
    transform: translateY(-3px);
}

.section-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.resource-link {
    display: block;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.resource-link:hover {
    background-color: var(--beige-content);
    color: var(--primary-orange);
    transform: translateY(-3px);
    text-decoration: none;
}

.resource-link i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-orange);
}

/* Risk Assessment Styles */
.assessment-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.question-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    border-left: 5px solid var(--primary-orange);
}

.question-section h4 {
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.question-text {
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-check {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-check:hover {
    border-color: var(--primary-orange);
    background-color: var(--beige-content);
}

.form-check-input:checked + .form-check-label {
    color: var(--primary-orange);
    font-weight: 600;
}

.form-check-label {
    cursor: pointer;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
}

.results-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.risk-badge {
    display: inline-block;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    min-width: 200px;
}

.risk-badge.success {
    background: linear-gradient(135deg, var(--success-green), #20a542);
}

.risk-badge.warning {
    background: linear-gradient(135deg, var(--warning-yellow), #e6a800);
    color: var(--dark-text);
}

.risk-badge.danger {
    background: linear-gradient(135deg, var(--danger-red), #c82333);
}

.risk-score {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.risk-level {
    font-size: 1.2rem;
    font-weight: 600;
}

.recommendations-section {
    margin: 3rem 0;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--beige-content);
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-orange);
}

.recommendation-icon {
    margin-right: 1rem;
    color: var(--primary-orange);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.recommendation-text h6 {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.priority-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.action-item i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.high-priority {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-red);
}

.medium-priority {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-yellow);
}

.low-priority {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info-blue);
}

/* Resources Styles */
.resource-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.resource-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.country-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.country-header {
    background: var(--beige-content);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.country-header h5 {
    margin: 0;
    color: var(--dark-text);
}

.country-flag {
    font-size: 2rem;
}

.country-details {
    padding: 2rem;
}

.detail-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.detail-item span {
    color: var(--light-text);
    line-height: 1.4;
}

.best-practices-card,
.response-checklist-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.best-practices-list {
    list-style: none;
    padding: 0;
}

.best-practices-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: flex-start;
}

.best-practices-list li:last-child {
    border-bottom: none;
}

.response-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h6 {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.step-content p {
    margin: 0;
    color: var(--light-text);
    font-size: 0.9rem;
}

.external-resource {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.external-resource:hover {
    border-color: var(--primary-orange);
    transform: translateY(-3px);
}

.external-resource i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.support-section {
    background: var(--beige-content);
    padding: 3rem;
    border-radius: 20px;
}

.support-option {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.support-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.support-option i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer h6 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin-top: 70px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-icon {
        font-size: 4rem;
    }
    
    .floating-icons {
        width: 150px;
        height: 150px;
    }
    
    .floating-icons i {
        font-size: 1.5rem;
    }
    
    .features-section,
    .tools-section,
    .cta-section {
        padding: 40px 0;
    }
    
    .feature-card,
    .tool-card {
        margin-bottom: 2rem;
    }
    
    .checklist-header {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .checklist-item {
        padding: 1rem;
    }
    
    .checklist-item .form-check-input {
        top: 1rem;
        right: 1rem;
    }
    
    .template-selector {
        position: static;
        margin-bottom: 2rem;
    }
    
    .country-grid {
        grid-template-columns: 1fr;
    }
    
    .assessment-container,
    .results-container {
        padding: 2rem;
    }
    
    .question-section {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand span {
        display: none;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .floating-icons {
        display: none;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0 !important;
    }
    
    .checklist-item .form-check-label {
        width: calc(100% - 30px);
    }
    
    .time-badge {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .risk-badge {
        min-width: 150px;
        padding: 1.5rem;
    }
    
    .risk-score {
        font-size: 2rem;
    }
    
    .country-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .country-card {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .floating-icons {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-section,
    .features-section,
    .tools-section,
    .cta-section {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .feature-card,
    .tool-card,
    .checklist-section,
    .template-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus styles for accessibility */
.btn:focus,
.form-check-input:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.3);
    outline: none;
}

.nav-link:focus {
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.3);
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --light-gray: #f0f0f0;
    }
    
    .feature-card,
    .tool-card,
    .checklist-section {
        border: 2px solid black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
