/*
 * File: css/rotate-organize.css
 * Description: ENTERPRISE GLASS STYLES for PDF Organizer
 */

.full-width-container { max-width: 1400px; }

/* ... [Layouts and Panels remain same as before] ... */
.converter-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; margin-bottom: 30px; animation: fadeIn 0.4s ease; }
.glass-panel { background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 20px; padding: 30px; box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07); transition: all 0.3s ease; }
.glass-panel:hover { box-shadow: 0 15px 50px rgba(147, 112, 219, 0.12); background: rgba(255, 255, 255, 0.85); }
.input-panel { min-height: 400px; }
.info-panel { display: flex; flex-direction: column; justify-content: center; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.panel-header h3 { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }

/* ... [Upload Area and Status Badge remain same] ... */
.upload-area { border: 2px dashed rgba(147, 112, 219, 0.3); border-radius: 15px; padding: 30px; text-align: center; background: rgba(250, 250, 255, 0.5); transition: all 0.3s; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.upload-area:hover { border-color: var(--primary-color); background: rgba(255, 255, 255, 0.8); }
.upload-icon { font-size: 3rem; margin-bottom: 15px; color: var(--primary-color); }
.divider { margin: 20px 0; width: 100%; color: #999; display: flex; align-items: center; }
.divider::before, .divider::after { content: ""; flex: 1; border-bottom: 1px solid #ddd; }
.divider span { padding: 0 10px; font-size: 0.8rem; }
.cloud-actions { display: flex; gap: 10px; width: 100%; }
.cloud-btn { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 8px; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }
.cloud-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.status-badge { background: #eee; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #666; }
.status-badge.active { background: #d1fae5; color: #059669; }

/* ... [Editor Workspace Header] ... */
.file-info-compact { display: flex; align-items: center; gap: 12px; }
.file-icon-small { font-size: 1.5rem; }
.file-meta-compact h4 { margin: 0; font-size: 1rem; }
.file-meta-compact p { margin: 0; font-size: 0.8rem; color: #666; }
.remove-file-btn { background: none; border: none; color: #ff4757; font-size: 1.2rem; cursor: pointer; margin-left: 15px; }

/* ... [Updated Toolbar] ... */
.glass-toolbar {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 10px;
}
.toolbar-label { font-size: 0.8rem; font-weight: 700; color: #888; margin-right: 10px; }
.tool-btn {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 5px;
    margin-bottom: 5px; /* Spacing for wrapped buttons */
}
.tool-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-color: var(--primary-color); color: var(--primary-color); }
.tool-btn.warning:hover { border-color: #ff4757; color: #ff4757; }
.page-counter { font-weight: 700; color: var(--primary-color); background: rgba(147, 112, 219, 0.1); padding: 5px 12px; border-radius: 12px; }

/* ... [Pages Grid] ... */
.pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; max-height: 600px; overflow-y: auto; padding: 20px; background: rgba(255,255,255,0.4); border: 2px dashed rgba(0,0,0,0.1); border-radius: 15px; }
.page-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); position: relative; cursor: grab; transition: all 0.3s; border: 2px solid transparent; }
.page-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: var(--primary-color); }
.page-thumbnail { height: 180px; display: flex; align-items: center; justify-content: center; background: #e9ecef; }
.page-canvas { max-width: 90%; max-height: 90%; object-fit: contain; box-shadow: 0 2px 5px rgba(0,0,0,0.1); background: white; }
.page-controls { position: absolute; top: 5px; right: 5px; display: flex; gap: 5px; opacity: 0; transition: 0.2s; }
.page-card:hover .page-controls { opacity: 1; }
.control-btn { width: 30px; height: 30px; border-radius: 50%; border: none; background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); cursor: pointer; }
.control-btn:hover { transform: scale(1.1); }
.page-footer { text-align: center; padding: 8px; font-size: 0.8rem; font-weight: 600; border-top: 1px solid #eee; display: flex; justify-content: space-between; }
.page-rotation { background: var(--primary-color); color: white; padding: 1px 5px; border-radius: 4px; font-size: 0.7rem; opacity: 0; }
.page-card[class*="rotated-"] .page-rotation { opacity: 1; }
.page-card.rotated-90 { transform: rotate(90deg); }
.page-card.rotated-180 { transform: rotate(180deg); }
.page-card.rotated-270 { transform: rotate(270deg); }
.page-card.deleted { opacity: 0.5; filter: grayscale(100%); border: 2px solid #ff4757; }

/* ... [Footer & Others] ... */
.editor-footer { margin-top: 25px; display: flex; flex-direction: column; align-items: center; }
.progress-bar { width: 100%; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; margin-bottom: 5px; }
.progress-fill { height: 100%; background: var(--primary-color); width: 0%; transition: width 0.3s; }
.empty-state { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #aaa; text-align: center; }
.empty-icon { font-size: 3rem; margin-bottom: 10px; opacity: 0.5; }
.privacy-note { text-align: center; margin-top: 30px; color: #666; background: rgba(255,255,255,0.5); padding: 10px; border-radius: 10px; font-size: 0.9rem; }
#notification { top: 30px !important; bottom: auto !important; right: auto !important; left: 50% !important; transform: translateX(-50%) !important; border-radius: 12px !important; padding: 15px 30px !important; font-size: 1rem !important; box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important; display: flex !important; align-items: center !important; justify-content: center !important; min-width: 300px !important; z-index: 99999 !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 992px) { .converter-workspace { grid-template-columns: 1fr; } .input-panel { min-height: auto; } }