* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    background: white;
    padding: 10px;
    display: flex;
    gap: 10px;
}

.file-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.2s;
}

.file-btn:hover {
    border-color: #CE2619;
  ;
}

.file-btn.active {
    background: #1A2D72;
    color: white;
  
}

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    background: #fff;
}

#canvas {
    max-width: 97%;
    max-height: 97%;
   
}

.footer {
    background: white;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

button {
    padding: 8px 16px;
    border: 1px solid #aaa;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

button:hover:not(:disabled) {
    background: #CE2619;
    color: white;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#page-info {
    min-width: 60px;
    text-align: center;
    font-weight: bold;
}

@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
    }
    
    .footer {
        flex-wrap: wrap;
    }
    
    button, .file-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}