/* TTApposto Dashboard Box */
.ttapposto-dashboard-box {
    margin: 30px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ttapposto-box-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.ttapposto-box-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ttapposto-box-header .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ttapposto-box-content {
    padding: 25px;
    background: #fafafa;
}

.ttapposto-box-content > p {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.ttapposto-no-files {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
    background: #fff;
    border: 2px dashed #e3e3e3;
    border-radius: 6px;
    margin: 0;
}

.ttapposto-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ttapposto-file-item {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ttapposto-file-item:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ttapposto-download-btn {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px !important;
    background: #fff !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    gap: 8px;
    min-height: 120px;
}

.ttapposto-download-btn:hover {
    background: #0073aa !important;
    color: #fff !important;
}

.ttapposto-download-btn .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #0073aa;
    transition: color 0.3s ease;
}

.ttapposto-download-btn:hover .dashicons {
    color: #fff;
}

.ttapposto-btn-label {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
    max-width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .ttapposto-dashboard-box {
        margin: 20px -15px;
        border-radius: 0;
    }

    .ttapposto-box-header {
        padding: 12px 15px;
    }

    .ttapposto-box-header h3 {
        font-size: 16px;
    }

    .ttapposto-box-content {
        padding: 20px 15px;
    }

    .ttapposto-files-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ttapposto-download-btn {
        flex-direction: row !important;
        min-height: auto;
        padding: 12px 15px !important;
        justify-content: flex-start;
    }

    .ttapposto-download-btn .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }

    .ttapposto-btn-label {
        text-align: left;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ttapposto-files-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}