/* Dear Flipbook Frontend Styles */
.dflip-frontend-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.dflip-frontend-container h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.dflip-frontend-container h3 {
    color: #555;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 500;
}

/* Upload Section */
.dflip-upload-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e1e1e1;
}

.dflip-upload-section h3 {
    margin-top: 0;
    color: #0073aa;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Button Styles */
.dflip-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.dflip-btn-primary {
    background: #0073aa;
    color: white;
}

.dflip-btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.dflip-btn-secondary {
    background: #6c757d;
    color: white;
    margin-left: 10px;
}

.dflip-btn-secondary:hover {
    background: #545b62;
}

.dflip-btn-danger {
    background: #dc3545;
    color: white;
}

.dflip-btn-danger:hover {
    background: #c82333;
}

.dflip-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.dflip-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Table Styles */
.dflip-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.dflip-table th {
    background: #0073aa;
    color: white;
    padding: 10px;
    text-align: left;
    font-weight: 500;
}

.dflip-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.dflip-table tr:hover {
    background: #f8f9fa;
}

.dflip-table code {
    background: #f1f3f4;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #333;
}

/* Edit Form Styles */
.dflip-edit-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #e9ecef;
}

.dflip-edit-form h4 {
    margin-top: 0;
    color: #0073aa;
    font-size: 16px;
}

.form-actions {
    margin-top: 20px;
}

/* PDF Preview Styles */
.pdf-preview {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
    background: #fff;
    overflow: hidden;
}

.pdf-preview embed {
    display: block;
    border: none;
}

.pdf-info {
    margin: 10px 0;
    font-size: 13px;
    color: #666;
}

.pdf-info a {
    color: #0073aa;
    text-decoration: none;
}

.pdf-info a:hover {
    text-decoration: underline;
}

/* Thumbnail Preview Styles */
.thumbnail-preview {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-align: center;
}

.thumbnail-preview img {
    max-width: 200px;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.thumbnail-preview p {
    margin: 0;
    color: #666;
    font-style: italic;
}

/* File upload in edit form */
.dflip-edit-form input[type="file"] {
    margin-top: 5px;
}

.dflip-edit-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* Notice Styles */
.dflip-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.dflip-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dflip-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dflip-notice-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Pagination */
.dflip-pagination {
    text-align: center;
    margin-top: 20px;
}

.dflip-pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
    transition: all 0.3s ease;
}

.dflip-pagination a:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.dflip-pagination a.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}
td.shortcode code {
    min-width: 150px;
    display: inline-block;
}

.dflip-table .actions {
    width: 150px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dflip-frontend-container {
        padding: 15px;
    }
    
    .dflip-table {
        font-size: 14px;
    }
    
    .dflip-table th,
    .dflip-table td {
        padding: 10px;
    }
    
    .dflip-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .dflip-table code {
        font-size: 11px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .dflip-table {
        display: block;
        overflow-x: auto;
    }
    
    .dflip-btn-small {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .form-actions .dflip-btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .form-actions .dflip-btn:last-child {
        margin-bottom: 0;
    }
}

/* Loading States */
.dflip-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for table rows */
.dflip-table tr {
    transition: all 0.3s ease;
}

.dflip-edit-row {
    background: #f8f9fa !important;
}

/* File input styling */
input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #fafafa;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

/* Success/Error states for form inputs */
.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.form-group input.success,
.form-group textarea.success {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
} 