/* DSH Admin Blocks Styles */

.dsh-admin-blocks {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dsh-dark);
    max-width: 800px; /* Slightly wider for admin forms */
    margin: 0 auto;
    padding: 24px 16px 120px 16px;
}

.dsh-admin-blocks * {
    box-sizing: border-box;
}

/* Header */
.dsh-ab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dsh-ab-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--dsh-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Section */
.dsh-ab-hero {
    position: relative;
    height: 180px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dsh-ab-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dsh-ab-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.dsh-ab-hero-content {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: white;
}

.dsh-ab-hero-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dsh-gold);
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.dsh-ab-hero-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

/* Form Section */
.dsh-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.dsh-section-head h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.dsh-section-head span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dsh-text-light);
    font-weight: 600;
}

.dsh-form-card {
    background: var(--dsh-bg-light);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 48px;
    border: 1px solid var(--dsh-border);
}

.dsh-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 768px) {
    .dsh-form-grid { grid-template-columns: 1fr 1fr; }
    .dsh-full-width { grid-column: span 2; }
}

.dsh-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dsh-input-group label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dsh-text-light);
    font-weight: 700;
    padding-left: 4px;
}

.dsh-input-wrapper {
    position: relative;
}

.dsh-input-wrapper input,
.dsh-input-wrapper input[type="time"],
.dsh-input-wrapper select,
.dsh-admin-blocks .dsh-calendar-trigger {
    width: 100%;
    background: var(--dsh-bg);
    border: 1px solid var(--dsh-border);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dsh-dark);
    font-family: inherit;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: none;
}

.dsh-input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
}

.dsh-admin-blocks .dsh-calendar-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 54px;
}

.dsh-admin-blocks .dsh-calendar-trigger:hover {
    border-color: var(--dsh-gold);
    background: rgba(212, 168, 83, 0.05);
}

.dsh-selected-date-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--dsh-dark);
}

.dsh-input-wrapper input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    cursor: pointer;
}

.dsh-input-wrapper input:focus,
.dsh-input-wrapper select:focus,
.dsh-admin-blocks .dsh-calendar-trigger:focus {
    outline: none;
    border-color: var(--dsh-primary);
    box-shadow: 0 0 0 4px rgba(193, 40, 49, 0.1);
}

.dsh-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dsh-text-light);
    pointer-events: none;
    z-index: 10;
}

.dsh-submit-btn {
    width: 100%;
    background: var(--dsh-charity-gradient);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(193, 40, 49, 0.25);
    transition: transform 0.2s;
    margin-top: 16px;
}

.dsh-submit-btn:active {
    transform: scale(0.98);
}

/* List Section */
.dsh-list-year {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0 16px 0;
}

.dsh-list-year span {
    font-size: 12px;
    font-weight: 700;
    color: var(--dsh-text-light);
    letter-spacing: 2px;
}

.dsh-list-year::before,
.dsh-list-year::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--dsh-border);
}

.dsh-block-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dsh-bg);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 12px;
    transition: all 0.2s;
    border: 1px solid var(--dsh-border);
}

.dsh-block-item:hover {
    background: var(--dsh-bg-light);
}

.dsh-block-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dsh-block-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(193, 40, 49, 0.1);
    color: var(--dsh-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsh-block-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
}

.dsh-block-info p {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dsh-text-light);
}

.dsh-block-delete {
    background: transparent;
    border: none;
    color: var(--dsh-text-light);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.dsh-block-delete:hover {
    color: #e8434c;
    background: rgba(232, 67, 76, 0.1);
}

.dsh-block-item.history .dsh-block-icon {
    background: var(--dsh-bg-light);
    color: var(--dsh-text-light);
}
