/* Corporate File Manager - Unified Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    color: #333;
    overflow-x: hidden;
}

/* Login Page Specific */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When Share modal is open, disable background interactions entirely */
body.share-modal-open .header,
body.share-modal-open .content {
    pointer-events: none;
    user-select: none;
}
body.share-modal-open #shareModal,
body.share-modal-open #shareModal * {
    pointer-events: auto;
    user-select: auto;
}

/* Container */
.container {
    width: 100%;
    height: 100vh;
    margin: 0;
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container.admin-container {
    height: auto;
    min-height: 100vh;
}

/* Header */
.header {
    background: #2c3e50;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* CloudStore logo (rounded blue square with CS) */
.cs-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #2563EB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.cs-logo span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn i {
    font-size: 14px;
}

/* Default grey color for all Font Awesome icons */
i.fas,
i.far,
i.fab {
    color: #6c757d;
}

/* Keep button icons white on colored buttons */
.btn-primary i,
.btn-success i,
.btn-danger i,
.btn-secondary i,
.btn.login-btn i {
    color: white !important;
}

.btn.login-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    background: #3498db;
    color: white;
}


.btn.admin-btn {
    padding: 10px 20px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

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

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Text editor UX */
.cs-text-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 12px;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
    margin: 6px 0 10px;
}
.cs-text-editor-toolbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7f8c8d;
    font-size: 12px;
}
.cs-text-editor-hint {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 46vw;
}
.cs-text-editor-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.cs-text-editor-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #2c3e50;
    user-select: none;
}
.cs-text-editor-toggle input {
    transform: translateY(1px);
}
.cs-text-editor-font {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cs-text-editor-font-label {
    font-size: 12px;
    color: #2c3e50;
    min-width: 44px;
    text-align: center;
}
.cs-text-editor-find {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cs-text-editor-find-input {
    width: 220px;
    max-width: 42vw;
    padding: 9px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}
.cs-text-editor-find-input:focus {
    border-color: #3498db;
}
.cs-text-editor-btn {
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 8px;
}
.cs-text-editor-pane {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.cs-text-editor-textarea {
    width: 100%;
    min-height: 55vh;
    max-height: 65vh;
    resize: vertical;
    border: 0;
    outline: 0;
    padding: 16px 18px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
    background: #fff;
    color: #2c3e50;
}
.cs-text-editor-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-top: 1px solid #ecf0f1;
    background: #f8f9fa;
    color: #7f8c8d;
    font-size: 12px;
}
.cs-text-editor-status-left,
.cs-text-editor-status-right {
    white-space: nowrap;
}

/* Content */
.content {
    /* Remove bottom padding so footer sits flush */
    padding: 20px 30px 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Login Container */
.login-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: none;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-header h1 i {
    color: #6c757d;
}

.login-header p {
    color: #7f8c8d;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Messages */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.info-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1976d2;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 12px;
    text-align: center;
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.btn-select-mode.active {
    background: #3498db;
    color: #fff;
}

.btn-select-mode.active i {
    color: #fff !important;
}

.btn-select-all {
    white-space: nowrap;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
    min-width: 220px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    transition: color 0.2s ease;
}

.search-icon i {
    color: #6c757d;
    transition: color 0.2s ease;
}

/* Upload from URL */
.upload-url {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.upload-url-title {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.upload-url-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.upload-url-row .modal-input {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.upload-url-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #95a5a6;
}

.search-icon[style*="cursor: pointer"] {
    pointer-events: auto;
}

.search-icon[style*="cursor: pointer"]:hover i {
    color: #e74c3c;
}

/* Stats */
/* Footer Status Bar */
.footer-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    /* Edge-to-edge like header (content has 30px side padding) */
    width: calc(100% + 60px);
    margin-left: -30px;
    margin-right: -30px;
    padding: 12px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
    font-size: 14px;
    flex-shrink: 0;
    border-radius: 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-label {
    color: #7f8c8d;
    font-weight: 500;
}

.status-value {
    color: #2c3e50;
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
    background: #ffffff;
    padding: 14px 24px;
    border-radius: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 52px;
    flex-shrink: 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb-item {
    color: #5a5a5a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-item:first-child {
    padding-left: 0;
}

.breadcrumb-item:hover {
    color: #2c3e50;
    background: #f0f7ff;
    text-decoration: none;
}

.breadcrumb-item:active {
    background: #e3f2fd;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #bdc3c7;
    font-size: 12px;
    font-weight: 300;
    user-select: none;
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
}

.breadcrumb-separator i {
    font-size: 10px;
}

/* File Grid */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    align-items: stretch; /* make all items in a row same height */
    align-content: start; /* prevent rows stretching to full container height */
    grid-auto-rows: auto;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 18px; /* space above footer */
}

.file-item {
    --item-accent: #3498db;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    vertical-align: top;
    height: auto;
    min-height: 170px; /* ensures border/bg always wrap size/date even in dense grids */
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.file-item:hover,
.file-item:active,
.file-item:focus {
    border-color: var(--item-accent) !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.file-item.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

/* Folders should match files: neutral grey outline, accent on hover */
.file-item.folder {
    border-color: #e9ecef;
}

.file-item.folder.custom-color {
    border-color: var(--item-accent);
}

.file-item.folder.custom-color .file-icon i {
    color: var(--item-accent) !important;
}

.file-icon {
    font-size: 48px;
    margin-bottom: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.file-thumb {
    width: 80px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: none;
    background: #fff;
    display: block;
}

/* Video overlay play indicator (works for both icons and thumbnails) */
.file-item[data-is-video="1"] .file-icon::before {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    pointer-events: none;
}

.file-item[data-is-video="1"] .file-icon::after {
    content: "\f04b";
    position: absolute;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    color: #fff;
    left: 50%;
    top: 50%;
    transform: translate(-45%, -50%); /* nudge for triangle optical centering */
    z-index: 3;
    pointer-events: none;
}

.file-icon i {
    font-size: 48px;
    display: block;
    color: #6c757d;
}

.file-item.folder .file-icon {
    color: #6c757d;
}

.file-item.folder .file-icon i {
    color: #6c757d;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    word-break: break-word;
    margin-bottom: 8px;
}

.file-size {
    font-size: 12px;
    color: #7f8c8d;
}

.file-date {
    font-size: 11px;
    color: #95a5a6;
    margin-top: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #6c757d;
}

.empty-state-icon i {
    font-size: 64px;
    color: #6c757d;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    padding: 6px 0;
    z-index: 2500;
    min-width: 220px;
    max-width: 320px;
    display: none;
    user-select: none;
}

.context-menu-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.context-menu-item i {
    width: 18px;
    text-align: center;
    color: #6c757d;
}

.context-menu-item:hover {
    background: #f3f6f9;
}

.context-menu-item.danger {
    color: #e74c3c;
}

.context-menu-item.danger:hover {
    background: #fff1f0;
}

.context-menu-divider {
    height: 1px;
    background: #e9ecef;
    margin: 6px 0;
}

/* Context menu submenu */
.context-menu-item.has-submenu {
    position: relative;
    justify-content: space-between;
}

.context-menu-item .submenu-arrow {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    color: #95a5a6;
}

.context-menu-submenu {
    display: none;
    position: absolute;
    left: calc(100% + 2px);
    top: -6px;
    min-width: 180px;
    background: white;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    padding: 6px 0;
    z-index: 2100;
}

.context-menu-item.has-submenu:hover .context-menu-submenu {
    display: block;
}

/* Sticky open (click-to-open) */
.context-menu-item.has-submenu.submenu-open .context-menu-submenu {
    display: block;
}

/* Left-opening submenu when near right edge */
.context-menu-submenu.open-left {
    left: auto;
    right: calc(100% + 2px);
}

/* Invisible bridge to prevent hover-gap collapse */
.context-menu-item.has-submenu::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10px;
    width: 12px;
    height: 100%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Image viewer */
.image-viewer-content {
    max-width: 95vw;
    width: 95vw;
    height: 90vh;
    max-height: 90vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* keep controls from jumping due to content sizing */
}

.image-viewer-body {
    border-radius: 8px;
    overflow: visible;
    background: transparent;
    display: block;
    flex: 1;
    min-height: 0;
    position: relative;
    padding: 16px; /* space for shadow + rounded corners */
}

.image-viewer-body .iv-layer {
    position: absolute;
    inset: 0;              /* constrained by the body padding box */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 220ms ease;
    will-change: opacity;
}

.image-viewer-body .iv-layer.active {
    opacity: 1;
}

.image-viewer-body .iv-img {
    /* IMPORTANT: constrain the element itself to the viewer box */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* Border ONLY for full-size viewer images (not thumbnails) */
#imageViewerImgA,
#imageViewerImgB {
    border: 1px solid #8e99a3;
}

/* Video viewer */
.video-viewer-content {
    max-width: 95vw;
    width: 95vw;
    height: 90vh;
    max-height: 90vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.video-viewer-body {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
}

.video-viewer-body video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
    background: #000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.modal-header h2 {
    font-size: 24px;
    color: #2c3e50;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viewer-info-row {
    /* Reserve space so image/video area doesn't jump when info text appears */
    min-height: 16px;
    line-height: 16px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #e74c3c;
}

/* Close button for media viewers (no header) */
.viewer-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    line-height: 34px;
    box-shadow: none;
}

.viewer-close-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.modal-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.modal-input:focus {
    outline: none;
    border-color: #3498db;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Image/Video viewer: put filename on the actions row */
.image-viewer-content .modal-actions,
.video-viewer-content .modal-actions {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.viewer-actions-left {
    flex: 1;
    min-width: 220px;
}

.viewer-filename {
    display: block;
    font-size: 13px;
    color: #2c3e50;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Properties List */
.properties-list {
    list-style: none;
}

.properties-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.properties-list li:last-child {
    border-bottom: none;
}

.properties-list .label {
    font-weight: 600;
    color: #7f8c8d;
}

.properties-list .value {
    color: #2c3e50;
    text-align: right;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.upload-area:hover {
    background: #e3f2fd;
    border-color: #2980b9;
}

.upload-area.dragover {
    background: #bbdefb;
    border-color: #1976d2;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #3498db;
    transition: width 0.1s linear;
}

/* Notification */
.notification {
    position: fixed;
    right: 20px;
    bottom: 20px;
    top: auto;
    left: auto;
    max-width: 440px;
    width: calc(100vw - 40px);
    padding: 12px 14px;
    border-radius: 12px;
    z-index: 3500;
    display: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-left-width: 4px;
    box-shadow: 0 18px 55px rgba(17, 24, 39, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    border-left-color: #16a34a;
}

.notification.error {
    border-left-color: #dc2626;
}

.notification.info {
    border-left-color: #2563eb;
}

.notification.warning {
    border-left-color: #d97706;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 1px;
}

.notification.success .notification-icon { color: #16a34a; }
.notification.error .notification-icon { color: #dc2626; }
.notification.info .notification-icon { color: #2563eb; }
.notification.warning .notification-icon { color: #d97706; }

.notification-message {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
}

.notification-close {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(17, 24, 39, 0.55);
    flex: 0 0 auto;
}

.notification-close:hover {
    background: rgba(17, 24, 39, 0.06);
    color: rgba(17, 24, 39, 0.75);
}

/* Global drag & drop overlay */
.drop-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(44, 62, 80, 0.35);
    z-index: 3100;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.drop-overlay.show {
    display: flex;
    opacity: 1;
}

.drop-overlay-content {
    background: #fff;
    border: 2px dashed #3498db;
    border-radius: 12px;
    padding: 28px 30px;
    text-align: center;
    max-width: 520px;
    width: 92%;
}

.drop-overlay-icon {
    font-size: 44px;
    margin-bottom: 10px;
}

.drop-overlay-text {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.drop-overlay-subtext {
    font-size: 13px;
    color: #7f8c8d;
}


/* Admin Page Specific */
.admin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.users-table th,
.users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.users-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

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

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-admin {
    background: #e74c3c;
    color: white;
}

.badge-user {
    background: #3498db;
    color: white;
}

.badge-active {
    background: #27ae60;
    color: white;
}

.badge-inactive {
    background: #95a5a6;
    color: white;
}
