/* dudt/style.css */
:root {
    --primary-main: #10b981;
    --primary-dark: #047857;
    --primary-light: #6ee7b7;
    --bg-color: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --danger: #ef4444;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* Header Bar */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 15px 30px;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.header-bar h2 { margin: 0; color: var(--primary-main); }
.btn-back {
    text-decoration: none;
    background: var(--border-color);
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.2s;
}
.btn-back:hover { background: #cbd5e1; }

/* Main Content */
.main-content { padding: 30px; max-width: 1200px; margin: auto; }
.header-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }

/* Grid & Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-main);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    position: relative;
}
.card:hover { transform: translateY(-5px); }
.card h3 { margin-top: 0; color: var(--primary-dark); }
.card p { margin: 8px 0 0 0; font-size: 0.9em; color: var(--text-muted); }

.highlight-text { font-family: monospace; color: var(--primary-main); font-weight: bold; }
.linked-badge { background: #dbeafe; color: #1e40af; padding: 3px 8px; border-radius: 12px; font-weight: bold; font-size: 0.85em; }
.unlinked-badge { background: #f1f5f9; color: #64748b; padding: 3px 8px; border-radius: 12px; font-size: 0.85em; }
.date-text { font-size: 0.8em; color: #94a3b8; border-top: 1px solid var(--border-color); margin-top: 15px !important; padding-top: 10px; }

/* Buttons */
button { cursor: pointer; padding: 10px 15px; border: none; border-radius: 6px; font-weight: bold; font-size: 0.95em; transition: 0.2s; font-family: inherit;}
.btn-success { background: var(--primary-main); color: var(--white); }
.btn-success:hover { background: var(--primary-dark); }
.btn-primary { background: #3b82f6; color: var(--white); }
.btn-primary:hover { background: #2563eb; }
.btn-cancel { background: #64748b; color: var(--white); }
.btn-cancel:hover { background: #475569; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--text-dark); }
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1em;
    box-sizing: border-box;
}
.form-group input:focus { outline: none; border-color: var(--primary-main); box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.hint-text { font-size: 0.85em; color: var(--text-muted); margin-top: 5px; line-height: 1.4; }
.modal-actions { text-align: right; margin-top: 25px; }
.modal-actions button { margin-left: 10px; }

/* Drive Styles */
#driveContainer {
    transition: all 0.2s;
    padding: 10px;
    border: 2px dashed transparent;
    border-radius: 8px;
    min-height: 150px;
}
#driveContainer.drag-over {
    border-color: var(--primary-main);
    background-color: rgba(16, 185, 129, 0.05);
}
.folder-drag-over {
    background: #e0f2fe !important;
    border-color: #3b82f6 !important;
    transform: scale(1.05);
}

.drive-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background: var(--white);
    transition: 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    position: relative;
}
.drive-item:hover {
    background: #f1f5f9;
    border-color: #93c5fd;
    transform: translateY(-2px);
}
.drive-icon { font-size: 2.5em; margin-bottom: 10px; }
.drive-preview-img { width: 100%; height: 150px; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }
.drive-name { font-size: 0.9em; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Kebab Menu & Dropdown */
.item-actions { position: absolute; top: 5px; right: 5px; z-index: 10; }
.btn-kebab { background: rgba(255,255,255,0.8); border: 1px solid var(--border-color); font-size: 1.2em; cursor: pointer; color: var(--text-dark); padding: 0; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.btn-kebab:hover { background: var(--white); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.dropdown-menu { display: none; position: absolute; right: 0; top: 100%; background: var(--white); border: 1px solid var(--border-color); border-radius: 6px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); z-index: 100; min-width: 120px; padding: 5px 0; margin: 5px 0 0 0; list-style: none; text-align: left; }
.dropdown-menu.show { display: block; }
.dropdown-menu li { padding: 8px 15px; cursor: pointer; font-size: 0.9em; transition: 0.2s; color: var(--text-dark); }
.dropdown-menu li:hover { background: #f1f5f9; color: var(--primary-main); }
.dropdown-menu li.text-danger { color: var(--danger); border-top: 1px solid var(--border-color); }
.dropdown-menu li.text-danger:hover { background: #fef2f2; }

/* Checkbox & Selected Item Styles */
.item-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 18px;
    height: 18px;
    z-index: 15;
    cursor: pointer;
    opacity: 0;
    transition: 0.2s;
    margin: 0;
}
.drive-item:hover .item-checkbox, .item-checkbox:checked { opacity: 1; }
.drive-item.selected { background-color: #f0fdf4 !important; border-color: var(--primary-main) !important; box-shadow: 0 4px 8px rgba(16, 185, 129, 0.15) !important; }