.dashboard-grid {
    display: grid;
    grid-template-columns: 4fr 1fr;
    grid-template-rows: auto;
    gap: 25px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

#ai-page .card:hover {
    transform: none;
    box-shadow: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
}

.card-action-btn {
    padding: 4px 12px;
    background-color: var(--bg-accent);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-dim);
}

/* Specific Card Types */
.metric-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.metric-change {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
}

.metric-change.positive {
    background-color: rgba(0, 194, 146, 0.1);
    color: var(--color-primary);
}

.chart-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(180deg, rgba(0, 194, 146, 0.05) 0%, transparent 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

.chart-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
}

/* Multi-column cards */
.card-wide {
    grid-column: span 2;
}

.card-full {
    grid-column: 1 / -1;
}

.card-tall {
    grid-row: span 2;
}

/* Tool Icons in Cards */
.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.bg-mint { background: rgba(0, 194, 146, 0.15); color: var(--color-primary); }
.bg-blue { background: rgba(52, 152, 219, 0.15); color: var(--color-blue); }
.bg-red { background: rgba(231, 76, 60, 0.15); color: var(--color-red); }
.bg-orange { background: rgba(243, 156, 18, 0.15); color: var(--color-orange); }
.bg-purple { background: rgba(155, 89, 182, 0.15); color: var(--color-purple); }

/* Tool Card Item Specifics */
.tool-card-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 30px 20px;
}

.tool-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tool-desc {
    font-size: 12px;
    color: var(--text-dim);
}

/* Weekly Leaves (Haftalık İzinliler) Styles */
.leave-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 10px;
}

.leave-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.leave-item:hover {
    background-color: rgba(0, 194, 146, 0.08);
    border-color: rgba(0, 194, 146, 0.3);
    transform: translateX(8px);
}

.leave-item.active-leave {
    background-color: rgba(0, 194, 146, 0.15);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 194, 146, 0.2);
    animation: pulseGlow 2s infinite ease-in-out;
}

.leave-item.active-leave .name {
    color: var(--color-primary);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 194, 146, 0.5);
}

.leave-item.active-leave .day {
    background: var(--color-primary);
    color: #000;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(0, 194, 146, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 194, 146, 0.4); }
    100% { box-shadow: 0 0 5px rgba(0, 194, 146, 0.2); }
}

.leave-item .day {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
}

.leave-item .name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.leave-item:hover .name {
    color: var(--color-primary);
}

/* Quill Editor Dark Theme Overrides */
.ql-toolbar.ql-snow {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: var(--bg-accent) !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.ql-container.ql-snow {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.ql-snow .ql-stroke {
    stroke: var(--text-muted) !important;
}

.ql-snow .ql-fill {
    fill: var(--text-muted) !important;
}

.ql-snow .ql-picker {
    color: var(--text-muted) !important;
}

.ql-editor {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: var(--text-main) !important;
}

/* Notification Styles */
.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notif-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 194, 146, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notif-content {
    flex: 1;
}

.notif-text {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.notif-time {
    font-size: 11px;
    color: var(--text-dim);
}

/* Note List Styles */
.notes-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.note-item {
    background: var(--bg-accent);
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    position: relative;
    animation: fadeIn 0.3s ease;
}

.note-item .note-content {
    font-size: 14px;
    color: var(--text-main);
}

.note-item .note-meta {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.delete-note {
    cursor: pointer;
    color: var(--color-red);
    opacity: 0.5;
    transition: 0.2s;
}

.delete-note:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
