/* Dashboard Button Container */
.dashboard-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 5vh;
    padding: 2rem;
}

/* Base Button Styles */
.dashboard-buttons .btn {
    position: relative;
    width: min(500px, 30vw);
    padding: 1.5rem 2rem;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    background: linear-gradient(135deg, var(--primary-red) 0%, #8b0000 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 0, 0, 0.2);
    /* Add these text centering properties */
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Hover Effects */
.dashboard-buttons .btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(196, 0, 0, 0.3);
    background: linear-gradient(135deg, #d10000 0%, #a50000 100%);
}

/* Active/Click Effect */
.dashboard-buttons .btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(196, 0, 0, 0.2);
}

/* Button Ripple Effect */
.dashboard-buttons .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1); /* Reduced opacity for subtlety */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
}

.dashboard-buttons .btn:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0; /* Fades out ripple instead of causing a flash */
}

/* Button Icon Support */
.dashboard-buttons .btn i,
.dashboard-buttons .btn svg {
    margin-right: 10px;
    font-size: 1.2em;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.dashboard-buttons .btn:hover i,
.dashboard-buttons .btn:hover svg {
    transform: scale(1.1);
}

/* Button Variants */
.dashboard-buttons .btn-primary {
    background: linear-gradient(135deg, #c40000 0%, #8b0000 100%);
}

.dashboard-buttons .btn-secondary {
    background: #2e2e2e;
}

.dashboard-buttons .btn-accent {
    background: #ffcf33;
    color: #2e2e2e;
}

/* Button Loading State */
.dashboard-buttons .btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.dashboard-buttons .btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: button-loading-spinner 1s linear infinite;
}

/* Button Focus State */
.dashboard-buttons .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 0, 0, 0.3);
}

/* Button Disabled State */
.dashboard-buttons .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #999;
    transform: none;
    box-shadow: none;
}

/* Group Button Layout */
.dashboard-buttons.group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* Button with Border Animation */
.dashboard-buttons .btn-border-animate {
    position: relative;
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    z-index: 1;
}

.dashboard-buttons .btn-border-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-red);
    z-index: -1;
    transition: width 0.3s ease;
}

.dashboard-buttons .btn-border-animate:hover {
    color: var(--primary-light);
}

.dashboard-buttons .btn-border-animate:hover::before {
    width: 100%;
}

:root {
    --primary-red: rgb(196, 0, 0);
    --primary-dark: #2e2e2e;
    --primary-light: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
    --border-radius: 10px;
}

/* Also target the anchor tags inside dashboard buttons for completeness */
.dashboard-buttons a {
    text-align: center;
}