/* ====================
   IPR PROJECT 1 CSS
   ==================== */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: #1a1a1a;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    font-weight: 600;
}

/* Print Button */
.print-section {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.print-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.print-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Navigation */
.navigation {
    position: fixed;
    left: 0;
    top: 80px;
    width: 250px;
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.navigation h3 {
    color: #764ba2;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.navigation ul {
    list-style: none;
}

.navigation li {
    margin: 8px 0;
}

.navigation button {
    width: 100%;
    text-align: left;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navigation button:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Header */
header {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    padding: 40px 20px;
    text-align: center;
    margin-left: 270px;
    margin-right: 20px;
    margin-top: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

header h1 {
    color: #764ba2;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header h2 {
    color: #667eea;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
}

.project-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: bold;
}

.project-info p {
    margin: 8px 0;
    font-size: 16px;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 20px auto 20px 290px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 5px solid #667eea;
}

section h2 {
    color: #764ba2;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    text-transform: uppercase;
}

section h3 {
    color: #667eea;
    font-size: 22px;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 15px;
}

section h4 {
    color: #764ba2;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
}

section h5 {
    color: #667eea;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 8px;
}

section p {
    margin-bottom: 15px;
    text-align: justify;
    font-weight: 600;
}

section ul, section ol {
    margin-left: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

section li {
    margin-bottom: 10px;
}

strong {
    color: #764ba2;
    font-weight: bold;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 16px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

tbody tr {
    background: white;
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
    transform: scale(1.01);
}

tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* Type Cards Grid */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.type-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.type-card h4 {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.type-card p {
    font-weight: 600;
    line-height: 1.6;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.right-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.right-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.right-card h4 {
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.right-card p {
    font-size: 14px;
    font-weight: 600;
}

/* Special Boxes */
.milestone-box, .definition-box, .convention-box, .economic-box, .conclusion-box, .acknowledgment-box {
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.milestone-box {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-left: 5px solid #ff6b6b;
}

.definition-box {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-left: 5px solid #667eea;
}

.convention-box {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    border-left: 5px solid #764ba2;
}

.economic-box {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-left: 5px solid #ff6b6b;
}

.conclusion-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left: 5px solid #f5576c;
}

.acknowledgment-box {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-left: 5px solid #667eea;
}

.milestone-box h4, .definition-box h4, .convention-box h4, .convention-box h5, .economic-box h4 {
    font-weight: bold;
    margin-bottom: 10px;
}

.conclusion-box p, .conclusion-box strong {
    color: white;
    font-weight: bold;
}

/* Importance List */
.importance-list {
    list-style: none;
}

.importance-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

.importance-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 20px;
}

/* Case Boxes */
.case-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    border-left: 5px solid #f5576c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.case-box h4 {
    color: #764ba2;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}

.case-box p {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Flowchart */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.flow-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    transition: all 0.3s ease;
}

.flow-box:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.flow-box h4 {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.flow-box p {
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
}

.flow-box ul {
    color: white;
    font-weight: 600;
}

.flow-start {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.flow-milestone {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #764ba2;
    border: 3px solid #ff6b6b;
}

.flow-milestone h4, .flow-milestone p, .flow-milestone ul {
    color: #764ba2;
}

.flow-current {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #764ba2;
    border: 3px solid #667eea;
}

.flow-current h4, .flow-current p, .flow-current ul {
    color: #764ba2;
}

.flow-arrow {
    font-size: 40px;
    color: #667eea;
    font-weight: bold;
    margin: 5px 0;
}

.process-flow .flow-box {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    color: #764ba2;
}

.flow-step h4, .flow-step p {
    color: #764ba2;
    font-weight: bold;
}

/* Mind Map */
.mindmap {
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 15px;
    margin: 30px 0;
}

.mindmap-center {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mindmap-center h3 {
    color: white;
    font-size: 28px;
    font-weight: bold;
}

.mindmap-branch {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.branch-main {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.branch-main h4 {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.branch-subs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.sub-node {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sub-node:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sub-node.highlight {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border: 3px solid #ff6b6b;
}

.sub-node strong {
    color: #764ba2;
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.sub-node p {
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
}

/* Q&A Section */
.qa-instruction {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 18px;
}

.qa-container {
    margin: 20px 0;
}

.qa-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.qa-question {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 20px;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.qa-question:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.qa-icon {
    font-size: 24px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    background: white;
    transition: max-height 0.4s ease;
}

.qa-answer.active {
    max-height: 2000px;
    padding: 20px;
    border-top: 3px solid #667eea;
}

.qa-answer p {
    margin-bottom: 12px;
    font-weight: 600;
}

.qa-answer ul, .qa-answer ol {
    margin-left: 25px;
    margin-bottom: 12px;
}

.qa-answer strong {
    color: #764ba2;
    font-weight: bold;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 30px;
    margin-left: 270px;
    margin-right: 20px;
    margin-top: 20px;
    border-radius: 15px;
    font-weight: bold;
}

footer p {
    margin: 8px 0;
    font-size: 16px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .navigation {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .container, header, footer {
        margin-left: 0;
        box-shadow: none;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .case-box, .flow-box, .mindmap-branch {
        page-break-inside: avoid;
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .navigation {
        width: 200px;
    }
    
    header, .container, footer {
        margin-left: 220px;
    }
}

@media screen and (max-width: 768px) {
    .navigation {
        position: static;
        width: 100%;
        max-height: none;
        border-radius: 15px;
        margin: 10px;
    }
    
    header, .container, footer {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .print-section {
        position: static;
        text-align: center;
        margin: 10px;
    }
    
    .types-grid, .rights-grid, .branch-subs {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    header h2 {
        font-size: 18px;
    }
    
    section h2 {
        font-size: 22px;
    }
    
    .flow-box {
        width: 100%;
    }
}

/* Accessibility */
a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* Final Statement */
.final-statement {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #ff6b6b;
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #764ba2;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}