/* postgraduate.css - Professional Design with Interactive Toolbar */

/* Google Fonts Integration */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Material Icons Styling */
.material-icons {
    font-size: 24px;
    vertical-align: middle;
}

/* Section Styles */
.pg-brochure-section {
    padding: 40px 0 80px;
    background: #f5f7fb;
    min-height: 100vh;
}

/* Main Container */
.brochure-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

/* Sidebar Styles */
.brochure-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.info-panel {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.panel-header {
    background: linear-gradient(135deg, #1a3c5e 0%, #2c5a7a 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.icon-wrapper .material-icons {
    font-size: 36px;
    color: white;
}

.panel-header h3 {
    font-size: 20px;
    margin: 0 0 5px;
    font-weight: 700;
}

.panel-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.panel-body {
    padding: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .material-icons {
    font-size: 22px;
    color: #4a90e2;
    margin-top: 2px;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #2c3e50;
    font-weight: 600;
}

.info-item span {
    font-size: 13px;
    color: #7f8c8d;
}

.panel-footer {
    padding: 20px;
    background: #f8fafc;
}

.btn-download-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-download-main .material-icons {
    font-size: 20px;
}

.btn-download-main:hover {
    background: #229954;
    transform: translateY(-2px);
    color: white;
}

/* Quick Stats */
.quick-stats {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.stat-item .material-icons {
    font-size: 32px;
    color: #4a90e2;
}

.stat-number {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 400;
}

/* PDF Viewer */
.brochure-viewer {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.viewer-toolbar {
    background: #f8fafc;
    border-bottom: 2px solid #eef2f6;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Interactive Tool Buttons - Static but interactive on hover/click */
.tool-btn {
    background: white;
    border: 1px solid #d1d9e6;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
}

.tool-btn .material-icons {
    font-size: 22px;
    transition: transform 0.2s;
}

/* Interactive States */
.tool-btn:hover {
    background: #4a90e2;
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.tool-btn:hover .material-icons {
    color: white;
    transform: scale(1.1);
}

.tool-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.2);
}

/* Disabled state */
.tool-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.tool-btn:disabled:hover {
    background: white;
    transform: none;
    box-shadow: none;
}

/* Small buttons variant */
.tool-btn.small {
    padding: 6px 12px;
    min-width: 36px;
    min-height: 36px;
}

.tool-btn.small .material-icons {
    font-size: 18px;
}

/* Large buttons variant */
.tool-btn.large {
    padding: 14px 24px;
    min-width: 56px;
    min-height: 56px;
}

.tool-btn.large .material-icons {
    font-size: 28px;
}

/* Size toggle button */
.size-toggle {
    background: #e8eef4;
    border: 1px solid #d1d9e6;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #2c3e50;
    transition: all 0.2s;
}

.size-toggle:hover {
    background: #4a90e2;
    color: white;
}

.zoom-level,
.page-info {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
    background: white;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #d1d9e6;
    min-width: 70px;
    text-align: center;
}

/* PDF Container with Scrolling */
.pdf-container-wrapper {
    position: relative;
    min-height: 700px;
    background: #e8eef4;
}

.pdf-scroll-container {
    height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    scroll-behavior: smooth;
}

.pdf-scroll-container::-webkit-scrollbar {
    width: 10px;
}

.pdf-scroll-container::-webkit-scrollbar-track {
    background: #d1d9e6;
    border-radius: 10px;
}

.pdf-scroll-container::-webkit-scrollbar-thumb {
    background: #4a90e2;
    border-radius: 10px;
}

.pdf-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #357abd;
}

/* PDF Pages Container */
#pdf-pages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.pdf-page-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 20px;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pdf-page-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.pdf-page-canvas {
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

.page-number-label {
    margin-top: 15px;
    font-size: 13px;
    color: #7f8c8d;
    text-align: center;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-number-label .material-icons {
    font-size: 16px;
}

/* Error Message */
.pdf-error {
    text-align: center;
    padding: 60px 20px;
}

.pdf-error .material-icons {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.pdf-error p {
    color: #5a6c7d;
    margin-bottom: 20px;
}

.btn-download-error {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4a90e2;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-download-error:hover {
    background: #357abd;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .brochure-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .brochure-sidebar {
        position: static;
    }
    
    .viewer-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-group {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .pg-brochure-section {
        padding: 20px 0 40px;
    }
    
    .pdf-scroll-container {
        height: 70vh;
        padding: 15px;
    }
    
    .tool-btn {
        padding: 8px 14px;
    }
    
    .tool-btn .material-icons {
        font-size: 20px;
    }
    
    .zoom-level,
    .page-info {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 576px) {
    .pdf-page-container {
        padding: 10px;
    }
    
    .page-number-label {
        font-size: 11px;
    }
    
    .tool-btn {
        padding: 6px 12px;
        min-width: 38px;
        min-height: 38px;
    }
    
    .tool-btn .material-icons {
        font-size: 18px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-page-container {
    animation: fadeIn 0.3s ease-out;
}

/* Smooth transitions */
.tool-btn,
.btn-download-main,
.btn-download-error,
.pdf-page-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading optimization - no spinner */
.pdf-container-wrapper::before {
    display: none;
}