﻿/* Container */
.document-container {
    background: #F8F9FA;
    border-radius: 10px;
    padding: 30px;
}

/* Titles */
.doc-title {
    font-size: 28px;
    font-weight: 700;
    color: #1E3A68;
}

.doc-subtitle {
    color: #555;
    margin-bottom: 30px;
}

/* Grid layout */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Card styling */
.document-card {
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 40px 20px 20px 20px; /* Added top padding for badge */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .document-card:hover {
        transform: scale(1.03);
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    }

/* File type badge */
.file-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #C62828; /* PDF default */
    color: white;
    padding: 2px 8px; /* smaller padding */
    border-radius: 6px;
    font-size: 10px; /* smaller font */
    font-weight: 700;
    letter-spacing: 0.5px;
}

    /* WORD badge */
    .file-type-badge.word {
        background: #1E3A68;
    }

/* Icon Section */
.doc-icon {
    font-size: 45px;
    margin-bottom: 10px;
}

/* Icon color classes */
.pdf-color {
    color: #C62828 !important;
}

.word-color {
    color: #1E3A68 !important;
}

/* Document Name */
.doc-name {
    font-size: 18px;
    font-weight: 600;
    color: #1E3A68;
    margin-bottom: 15px;
    word-wrap: break-word; /* ensures long names wrap */
}

/* Buttons */
.doc-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.view-btn,
.download-btn {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-btn {
    background: var(--primary-color);
    color: white;
}

    .view-btn:hover {
        opacity: 0.8;
    }

.download-btn {
    background: var(--secondary-color);
    color: white;
}

    .download-btn:hover {
        opacity: 0.8;
    }
