/* --- Footer Blue --- */
.footer {
    background: #2563eb !important;
    color: #fff !important;
    border-top: none !important;
}
.footer span, .footer small {
    color: #fff !important;
}
/* Login page background watermark */
.login-container {
    position: relative;
    min-height: 80vh;
}
.login-container:before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: url('/loginicon.png') no-repeat center center;
    background-size: contain;
    opacity: 0.13;
    z-index: 1;
    pointer-events: none;
}
.login-container > * { position: relative; z-index: 2; }


body {
    min-height: 100vh;
    background: linear-gradient(135deg, #23242a 0%, #35363b 100%);
    font-family: 'Segoe UI', 'Instrument Sans', Arial, sans-serif;
}

.app-bg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
}

.app-bg:before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: none;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-bg:after {
    content: '';
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    background: url('/spoticon.png') no-repeat center center;
    background-size: contain;
    opacity: 0.13;
    z-index: 2;
    pointer-events: none;
}
.app-bg > * { position: relative; z-index: 3; }
.app-bg > * { position: relative; z-index: 2; }

.app-bg {
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Professional card look for containers */
.container {
    background: rgba(38, 40, 48, 0.98);
    border-radius: 16px;
    box-shadow: 0 4px 24px 0 rgba(60,72,88,0.18);
    border: 1.5px solid #44454d;
    padding: 1.2rem 0.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    max-width: 900px;
    color: #f3f6fa;
}

/* Overlay for readability */
.app-bg:before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.85);
    z-index: 0;
}
.app-bg > * { position: relative; z-index: 1; }

/* Footer styles */
.footer {
    background: transparent;
    border-top: 1px solid #e0e7ef;
    font-size: 1rem;
    color: #2d3e50;
    margin-top: auto;
    box-shadow: 0 -2px 8px 0 rgba(60,72,88,0.04);
}
.footer img {
    filter: grayscale(30%) drop-shadow(0 2px 4px rgba(60,72,88,0.10));
}
.footer small {
    font-size: 0.95rem;
    color: #888;
}

@media (max-width: 600px) {
    .container {
        padding: 0.7rem 0.3rem;
        margin-top: 1.2rem;
        margin-bottom: 0.5rem;
        max-width: 100vw;
    }
    table {
        font-size: 0.93rem;
    }
    h2, .h2 {
        font-size: 1.1rem;
    }
    .btn {
        font-size: 0.93rem;
        padding: 0.35rem 0.6rem;
    }
}

/* Table improvements */
table.table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px 0 rgba(60,72,88,0.07);
}
thead.thead-dark th {
    background: #44474e;
    color: #fff;
    border: none;
}
tbody tr {
    border-bottom: 1px solid #e0e7ef;
}

/* Button enhancements */
.btn-primary {
    background: #2d3e50;
    border: none;
    transition: background 0.2s;
}
.btn-primary:hover, .btn-primary:focus {
    background: #1a2533;
}
.btn-success {
    background: #1bbf6b;
    border: none;
}
.btn-success:hover, .btn-success:focus {
    background: #159a54;
}
.btn-warning {
    background: #ffb300;
    border: none;
    color: #222;
}
.btn-warning:hover, .btn-warning:focus {
    background: #e09e00;
    color: #fff;
}
.btn-danger {
    background: #e74c3c;
    border: none;
}
.btn-danger:hover, .btn-danger:focus {
    background: #c0392b;
}

/* Misc */
label {
    font-weight: 500;
    color: #f3f6fa;
}
input, select, textarea {
    border-radius: 7px !important;
    border: 1px solid #cfd8dc !important;
    box-shadow: none !important;
}
input:focus, select:focus, textarea:focus {
    border-color: #1bbf6b !important;
    outline: none !important;
}
