/* Water Shadow / Glossy Design System for Admin Panel */

/* Global Button Styles - All buttons get pill shape */
button,
a.btn-water,
button.btn-water,
input[type="submit"],
input[type="button"] {
    border-radius: 50px !important;
    padding: 10px 20px !important;
}

/* Global Water Shadow Variables */
:root {
    --water-shadow-light: rgba(255, 255, 255, 0.8);
    --water-shadow-dark: rgba(0, 0, 0, 0.1);
    --water-shadow-glow: rgba(59, 130, 246, 0.3);
    --water-gradient-light: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    --water-gradient-dark: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.1) 100%);
}

/* Water Shadow Effect Base Class */
.water-shadow {
    background: var(--water-gradient-light);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.water-shadow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Glossy Button Styles */
.btn-water {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 
        0 10px 25px rgba(102, 126, 234, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 10px 20px;
}

.btn-water::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-water:hover::before {
    left: 100%;
}

.btn-water:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.5),
        0 6px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-water:active {
    transform: translateY(0);
    box-shadow: 
        0 5px 15px rgba(102, 126, 234, 0.3),
        inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Sidebar Water Shadow Effect */
.sidebar-water {
    background: linear-gradient(180deg, #1a202c 0%, #2d3748 100%);
    box-shadow: 
        4px 0 20px rgba(0, 0, 0, 0.3),
        inset -1px 0 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.sidebar-water::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Sidebar Menu Items Water Effect */
.sidebar-item-water {
    background: transparent;
    border-radius: 12px;
    margin: 4px 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-item-water::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.sidebar-item-water:hover::before {
    left: 100%;
}

.sidebar-item-water:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.sidebar-item-water.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3) 0%, rgba(99, 102, 241, 0.2) 100%);
    box-shadow: 
        0 4px 12px rgba(79, 70, 229, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-left: 3px solid #6366f1;
    color: #e0e7ff !important;
}

.sidebar-item-water.active svg {
    color: #a5b4fc;
}

.sidebar-item-water.active span {
    color: #e0e7ff !important;
    font-weight: 600;
}

/* Card Water Shadow */
.card-water {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.card-water::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

/* Table Water Shadow */
.table-water {
    background: white;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
}

.table-water thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.table-water thead th {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.table-water tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.table-water tbody tr:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.03) 100%);
    box-shadow: inset 0 1px 0 rgba(99, 102, 241, 0.1);
    transform: scale(1.01);
}

/* Header Water Shadow */
.header-water {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.header-water::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

/* Input Water Shadow */
.input-water {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 2px 4px rgba(0, 0, 0, 0.02),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.input-water:focus {
    box-shadow: 
        0 6px 20px rgba(99, 102, 241, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.02),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.4);
    background: white;
}

/* Badge Water Shadow */
.badge-water {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.badge-water::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}

/* Background Water Effect */
.bg-water {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    position: relative;
}

.bg-water::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Glossy Link Effect */
.link-water {
    position: relative;
    transition: all 0.3s ease;
}

.link-water::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: width 0.3s ease;
}

.link-water:hover::after {
    width: 100%;
}

/* Success/Error Messages Water Shadow */
.alert-water {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border-left: 4px solid;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.alert-water::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.3;
}

/* Pagination Water Shadow */
.pagination-water .page-link {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pagination-water .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Dropdown Water Shadow */
.dropdown-water {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Animation for Water Ripple Effect */
@keyframes waterRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.water-ripple {
    position: relative;
    overflow: hidden;
}

.water-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.water-ripple:active::after {
    width: 300px;
    height: 300px;
    animation: waterRipple 0.6s ease-out;
}

/* Global Button Water Shadow Styles */
button[type="submit"],
a.bg-blue-500,
button.bg-blue-500,
a.bg-red-500,
button.bg-red-500,
a.bg-green-500,
button.bg-green-500 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.35),
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 10px 20px;
}

button[type="submit"]::before,
a.bg-blue-500::before,
button.bg-blue-500::before,
a.bg-red-500::before,
button.bg-red-500::before,
a.bg-green-500::before,
button.bg-green-500::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

button[type="submit"]:hover::before,
a.bg-blue-500:hover::before,
button.bg-blue-500:hover::before,
a.bg-red-500:hover::before,
button.bg-red-500:hover::before,
a.bg-green-500:hover::before,
button.bg-green-500:hover::before {
    left: 100%;
}

button[type="submit"]:hover,
a.bg-blue-500:hover,
button.bg-blue-500:hover,
a.bg-red-500:hover,
button.bg-red-500:hover,
a.bg-green-500:hover,
button.bg-green-500:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 28px rgba(102, 126, 234, 0.45),
        0 5px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Red buttons special styling */
a.bg-red-500,
button.bg-red-500 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 
        0 8px 20px rgba(239, 68, 68, 0.35),
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    padding: 10px 20px;
}

a.bg-red-500:hover,
button.bg-red-500:hover {
    box-shadow: 
        0 12px 28px rgba(239, 68, 68, 0.45),
        0 5px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Green buttons special styling */
a.bg-green-500,
button.bg-green-500 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 
        0 8px 20px rgba(16, 185, 129, 0.35),
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    padding: 10px 20px;
}

a.bg-green-500:hover,
button.bg-green-500:hover {
    box-shadow: 
        0 12px 28px rgba(16, 185, 129, 0.45),
        0 5px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Cards and Tables Global Water Shadow */
.bg-white.shadow-md,
.bg-white.shadow {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Table rows hover effect */
table tbody tr:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.03) 100%);
    box-shadow: inset 0 1px 0 rgba(99, 102, 241, 0.1);
    transition: all 0.2s ease;
}

