/* Styles for Halfaya Medical Directory */

/* Reset margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', Arial, sans-serif;
    direction: rtl;
    margin-top: 62px; /* Space for fixed header */
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2D89EF;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-logo {
    font-size: 20px;
    font-weight: bold;
}

/* Logo link styles */
.logo-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    height: 42px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    .logo-image {
        height: 35px;
    }
    
    .logo-link {
        font-size: 1rem;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .logo-image {
        height: 30px;
    }
    
    .logo-link {
        font-size: 0.9rem;
        gap: 8px;
    }
}

/* Navigation styles */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 70px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 60px 0 40px;
    text-align: center;
    background-image: url('../img/image.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

/* Blue overlay filter */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 137, 239, 0.75) 0%, rgba(26, 92, 163, 0.85) 100%);
    z-index: 1;
}

/* Ensure content is above the overlay */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.intro-message {
    margin: 20px auto;
    max-width: 860px;
    background: rgba(255, 255, 255, 0.93); /* خلفية بيضاء ناعمة */
    padding: 22px 26px;
    border-radius: 12px; /* حواف ناعمة وهادئة */
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); /* ظل خفيف جداً */
}

/* Islamic Geometric Pattern Background for Hadith Section */
.hadith-section {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(250, 252, 255, 0.97) 50%, rgba(255, 255, 255, 0.99) 100%);
    overflow: hidden;
    border: 1px solid rgba(45, 137, 239, 0.12);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(45, 137, 239, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(45, 137, 239, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hadith-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url('../img/islamic-ornament-icon-4711878-512.png');
    /* تصغير الحجم لعرض 3 صفوف: الأول نصف، الأوسط كامل، الأخير نصف */
    background-size: 100px 100px;
    background-position: center center;
    background-repeat: repeat;
    opacity: 0.24;
    z-index: 0;
    pointer-events: none;
    /* تحويل اللون إلى أسود */
    filter: brightness(0) saturate(100%);
    /* لون أسود */
    /* إظهار 3 صفوف فقط: الأول نصف من الأعلى، الأوسط كامل، الأخير نصف من الأسفل */
    /* بدون شفافية على الحواف لإظهار الأيقونات */
    mask-image: 
        linear-gradient(to bottom, 
            black 0%, 
            black 15%, 
            black 35%, 
            black 50%, 
            black 65%, 
            black 85%, 
            black 100%);
    -webkit-mask-image: 
        linear-gradient(to bottom, 
            black 0%, 
            black 15%, 
            black 35%, 
            black 50%, 
            black 65%, 
            black 85%, 
            black 100%);
    /* تأثير حركة ناعمة */
    animation: elegantPattern 25s ease-in-out infinite;
}

@keyframes elegantPattern {
    0%, 100% {
        opacity: 0.25;
        transform: scale(1) translateY(0);
        filter: brightness(0) saturate(100%);
    }
    25% {
        opacity: 0.27;
        transform: scale(1.01) translateY(-1px);
        filter: brightness(0) saturate(100%);
    }
    50% {
        opacity: 0.28;
        transform: scale(1.02) translateY(0);
        filter: brightness(0) saturate(100%);
    }
    75% {
        opacity: 0.27;
        transform: scale(1.01) translateY(1px);
        filter: brightness(0) saturate(100%);
    }
}

.hadith-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* تدرج محسّن ومتعدد الطبقات من المركز للخارج */
    background: 
        radial-gradient(ellipse 90% 120% at center, 
            rgba(255, 255, 255, 0.60) 0%, 
            rgba(255, 255, 255, 0.78) 40%, 
            rgba(255, 255, 255, 0.90) 65%, 
            rgba(255, 255, 255, 0.96) 85%, 
            rgba(255, 255, 255, 0.99) 100%),
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.3) 0%, 
            transparent 50%, 
            rgba(255, 255, 255, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
    /* تأثير توهج داخلي محسّن */
    box-shadow: 
        inset 0 0 80px rgba(45, 137, 239, 0.04),
        inset 0 0 40px rgba(255, 255, 255, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.hadith-section .hadith-text,
.hadith-section .normal-text {
    position: relative;
    z-index: 2;
    /* تحسين وضوح النص بشكل كبير */
    text-shadow: 
        0 1px 3px rgba(255, 255, 255, 0.9),
        0 2px 6px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
    /* تحسين التباين */
    filter: contrast(1.05);
}

/* Responsive styles for hadith section */
@media screen and (max-width: 768px) {
    .hadith-section {
        border-radius: 14px;
        box-shadow: 
            0 6px 24px rgba(45, 137, 239, 0.06),
            0 2px 6px rgba(0, 0, 0, 0.03),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    
    .hadith-section::before {
        /* حجم محسّن للشاشات المتوسطة */
        background-size: 75px 75px;
        opacity: 0.22;
        mask-image: 
            linear-gradient(to bottom, 
                black 0%, 
                black 13%, 
                black 37%, 
                black 50%, 
                black 63%, 
                black 87%, 
                black 100%);
        -webkit-mask-image: 
            linear-gradient(to bottom, 
                black 0%, 
                black 13%, 
                black 37%, 
                black 50%, 
                black 63%, 
                black 87%, 
                black 100%);
        filter: brightness(0) saturate(100%);
        animation: elegantPattern 30s ease-in-out infinite;
    }
    
    .hadith-section::after {
        background: 
            radial-gradient(ellipse 85% 115% at center, 
                rgba(255, 255, 255, 0.65) 0%, 
                rgba(255, 255, 255, 0.82) 40%, 
                rgba(255, 255, 255, 0.93) 65%, 
                rgba(255, 255, 255, 0.97) 85%, 
                rgba(255, 255, 255, 0.99) 100%);
        box-shadow: 
            inset 0 0 60px rgba(45, 137, 239, 0.03),
            inset 0 0 30px rgba(255, 255, 255, 0.5);
    }
    
    .hadith-section .hadith-text,
    .hadith-section .normal-text {
        text-shadow: 
            0 1px 2px rgba(255, 255, 255, 0.9),
            0 2px 4px rgba(255, 255, 255, 0.4);
    }
}

@media screen and (max-width: 480px) {
    .hadith-section {
        padding: 18px 20px;
        border-radius: 12px;
        box-shadow: 
            0 4px 16px rgba(45, 137, 239, 0.05),
            0 1px 4px rgba(0, 0, 0, 0.02),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    
    .hadith-section::before {
        /* حجم محسّن للشاشات الصغيرة لظهور أفضل */
        background-size: 60px 60px;
        opacity: 0.22;
        mask-image: 
            linear-gradient(to bottom, 
                black 0%, 
                black 12%, 
                black 38%, 
                black 50%, 
                black 62%, 
                black 88%, 
                black 100%);
        -webkit-mask-image: 
            linear-gradient(to bottom, 
                black 0%, 
                black 12%, 
                black 38%, 
                black 50%, 
                black 62%, 
                black 88%, 
                black 100%);
        filter: brightness(0) saturate(100%);
        animation: elegantPattern 35s ease-in-out infinite;
    }
    
    .hadith-section::after {
        background: 
            radial-gradient(ellipse 75% 105% at center, 
                rgba(255, 255, 255, 0.72) 0%, 
                rgba(255, 255, 255, 0.87) 40%, 
                rgba(255, 255, 255, 0.96) 65%, 
                rgba(255, 255, 255, 0.98) 85%, 
                rgba(255, 255, 255, 0.99) 100%);
        box-shadow: 
            inset 0 0 45px rgba(45, 137, 239, 0.02),
            inset 0 0 20px rgba(255, 255, 255, 0.5);
    }
    
    .hadith-section .hadith-text,
    .hadith-section .normal-text {
        text-shadow: 
            0 1px 2px rgba(255, 255, 255, 0.95),
            0 1px 3px rgba(255, 255, 255, 0.4);
        filter: contrast(1.08);
    }
}

.hadith-text {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #2468d0; /* أزرق جميل ومتناسق */
    margin-bottom: 10px;
}

.normal-text {
    display: block;
    font-size: 17px;
    color: #333;
    line-height: 1.7;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-button {
    padding: 15px 25px;
    background-color: #fff;
    color: #2D89EF;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* On-Duty Section */
.on-duty-section {
    padding: 50px 0;
    background-color: #fafbfc;
    margin-top: 40px;
}

.on-duty-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.on-duty-section .section-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    text-align: center;
}

.on-duty-card {
    background-color: #F2F4F7;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2D89EF;
    text-align: center;
}

.pharmacy-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pharmacy-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.pharmacy-phone {
    font-size: 1.2rem;
    color: #555;
}

.call-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #2D89EF 0%, #1a6bc7 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(45, 137, 239, 0.3);
}

.call-button:hover {
    background: linear-gradient(135deg, #1a6bc7 0%, #2D89EF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(45, 137, 239, 0.4);
}

/* Categories Section */
.categories-section {
    padding: 40px 0;
    background-color: #fff;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    background-color: #2D89EF;
    color: white;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.category-name {
    font-size: 1.1rem;
    font-weight: bold;
}

/* View All Button Section */
.view-all-section {
    padding: 40px 0;
    text-align: center;
}

.view-all-button {
    display: inline-block;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    background-color: #2D89EF;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 137, 239, 0.3);
}

.view-all-button:hover {
    background-color: #1a5ca3;
    transform: translateY(-3px);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #2D89EF;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .header {
        padding: 15px;
    }
    
    .hero-section {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-card {
        padding: 20px 10px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .category-name {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-section {
        padding: 40px 0 30px;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .on-duty-section .section-title {
        font-size: 18px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input, .search-button {
        padding: 12px 15px;
    }
}

/* Additional styles for categories page */
.page-title {
    font-size: 2rem;
    color: #2D89EF;
    text-align: center;
    margin: 30px 0;
}

.subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

.category-count {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.categories-search {
    max-width: 500px;
    margin: 20px auto 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media screen and (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

/* Additional styles for doctors page */
.doctors-search {
    max-width: 700px;
    margin: 20px auto 30px;
}

.filters-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    font-family: 'Tajawal', Arial, sans-serif;
    font-size: 1rem;
    direction: rtl;
    min-width: 200px;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.doctor-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card-content {
    flex-grow: 1;
}

.card-footer {
    margin-top: 20px;
}

.doctor-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2D89EF;
    margin: 0 0 15px 0;
    word-break: break-word;
    white-space: normal;
}

.doctor-specialty {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 15px 0;
    word-break: break-word;
    white-space: normal;
}

.doctor-address {
    font-size: 1rem;
    color: #555;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}

.doctor-phone {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
    white-space: normal;
}

.call-button-small {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(135deg, #2D89EF 0%, #1a6bc7 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(45, 137, 239, 0.3);
}

.call-button-small:hover {
    background: linear-gradient(135deg, #1a6bc7 0%, #2D89EF 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 137, 239, 0.4);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

@media screen and (max-width: 1024px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-container {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-select {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 768px) {
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .doctors-search {
        margin: 15px auto 25px;
    }
    
    .doctor-card {
        padding: 20px;
        min-height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .doctor-name {
        font-size: 1.2rem;
    }
    
    .doctor-specialty, .doctor-phone, .doctor-address {
        font-size: 1rem;
    }
    
    .doctor-card {
        min-height: 230px;
    }
    
    .filter-select {
        min-width: auto;
    }
    
    .no-results {
        font-size: 1.1rem;
        padding: 30px;
    }
}

/* Additional styles for on-duty page */
.on-duty-main-card {
    background-color: #F2F4F7;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    margin: 30px auto;
    max-width: 600px;
}

.pharmacy-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.pharmacy-title {
    font-size: 1.8rem;
    color: #2D89EF;
    margin-bottom: 25px;
}

.pharmacy-details {
    margin: 25px 0;
}

.pharmacy-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    gap: 10px;
}

.info-icon {
    font-size: 1.2rem;
}

.info-text {
    font-size: 1.1rem;
    color: #444;
}

.call-button-large {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #2D89EF 0%, #1a6bc7 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(45, 137, 239, 0.3);
    margin-top: 20px;
}

.call-button-large:hover {
    background: linear-gradient(135deg, #1a6bc7 0%, #2D89EF 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(45, 137, 239, 0.4);
}

.section-subtitle {
    font-size: 1.5rem;
    color: #2D89EF;
    text-align: center;
    margin: 40px 0 25px;
}

.info-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.info-card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.info-card-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.info-card-text {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.admin-note {
    text-align: center;
    margin: 30px 0;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 8px;
    color: #495057;
    font-size: 0.9rem;
}

/* On-duty note styles */
.on-duty-note {
    background: #F2F4F7;
    padding: 15px 20px;
    margin-top: 25px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.on-duty-note p {
    margin: 0;
}

/* Grid container for multiple on-duty pharmacies */
.on-duty-pharmacies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 30px auto;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    align-items: stretch;
}

/* Individual pharmacy card styling */
.on-duty-pharmacy-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
}

/* Single card - center it */
.on-duty-pharmacies-grid.single-card {
    max-width: 400px;
}

.on-duty-pharmacies-grid.single-card .on-duty-pharmacy-card {
    max-width: 100%;
}

/* Two cards - equal spacing and centered */
.on-duty-pharmacies-grid.two-cards {
    max-width: 800px;
}

.on-duty-pharmacies-grid.two-cards .on-duty-pharmacy-card {
    max-width: calc(50% - 12.5px);
    min-width: 300px;
    flex: 0 0 calc(50% - 12.5px);
}

/* Three cards - equal spacing and centered */
.on-duty-pharmacies-grid.three-cards {
    max-width: 1200px;
}

.on-duty-pharmacies-grid.three-cards .on-duty-pharmacy-card {
    max-width: calc(33.333% - 17px);
    min-width: 280px;
    flex: 0 0 calc(33.333% - 17px);
}

/* Four or more cards - grid layout */
.on-duty-pharmacies-grid.multiple-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-items: center;
}

.on-duty-pharmacies-grid.multiple-cards .on-duty-pharmacy-card {
    max-width: 350px;
    width: 100%;
}

/* Individual pharmacy card in the grid */
.on-duty-pharmacy-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.on-duty-pharmacy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2D89EF, #1a6bc7);
}

.on-duty-pharmacy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(45, 137, 239, 0.15);
    border-color: #2D89EF;
}

.on-duty-pharmacy-card .pharmacy-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.on-duty-pharmacy-card .shift-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    text-align: center;
}

.pharmacy-card-title {
    font-size: 1.5rem;
    color: #2D89EF;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.4;
    word-wrap: break-word;
}

.on-duty-pharmacy-card .pharmacy-details {
    margin: 20px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.on-duty-pharmacy-card .pharmacy-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    gap: 10px;
    padding: 8px 0;
    background-color: rgba(45, 137, 239, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.on-duty-pharmacy-card .pharmacy-info-item:hover {
    background-color: rgba(45, 137, 239, 0.1);
}

.on-duty-pharmacy-card .pharmacy-info-item .info-icon {
    font-size: 1.3rem;
}

.on-duty-pharmacy-card .pharmacy-info-item .info-text {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.on-duty-pharmacy-card .call-button-large {
    margin-top: 20px;
    width: 100%;
    padding: 14px 25px;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
}

/* Shift Type Badge Styles */
.shift-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.shift-badge.shift-morning {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;
    border: 2px solid #FFD700;
}

.shift-badge.shift-evening {
    background: linear-gradient(135deg, #4B0082 0%, #6A5ACD 100%);
    color: #FFFFFF;
    border: 2px solid #6A5ACD;
}

.shift-badge .shift-icon {
    font-size: 1.2rem;
    display: inline-block;
}

.shift-badge .shift-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.shift-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* View More Button Container */
.view-more-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    width: 100%;
    padding: 0 20px;
}

.view-more-button {
    display: inline-block;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    background: linear-gradient(135deg, #2D89EF 0%, #1a6bc7 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 137, 239, 0.3);
}

.view-more-button:hover {
    background: linear-gradient(135deg, #1a6bc7 0%, #2D89EF 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 137, 239, 0.4);
}

@media screen and (max-width: 768px) {
    .on-duty-main-card {
        padding: 20px;
        margin: 20px auto;
    }
    
    .pharmacy-title {
        font-size: 1.5rem;
    }
    
    .info-text {
        font-size: 1rem;
    }
    
    .call-button-large {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .info-cards-container {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 15px;
    }
    
    /* Responsive grid for on-duty pharmacies */
    .on-duty-pharmacies-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 10px;
        max-width: 100% !important;
    }
    
    .on-duty-pharmacies-grid.single-card,
    .on-duty-pharmacies-grid.two-cards,
    .on-duty-pharmacies-grid.three-cards,
    .on-duty-pharmacies-grid.multiple-cards {
        max-width: 100% !important;
    }
    
    .on-duty-pharmacies-grid.two-cards .on-duty-pharmacy-card,
    .on-duty-pharmacies-grid.three-cards .on-duty-pharmacy-card {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        min-width: auto !important;
    }
    
    .on-duty-pharmacies-grid.multiple-cards {
        grid-template-columns: 1fr !important;
    }
    
    .view-more-container {
        margin-top: 20px;
        width: 100%;
        padding: 0 10px;
    }
    
    .view-more-button {
        padding: 18px;
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .on-duty-pharmacy-card {
        padding: 25px 20px;
        min-height: 260px;
    }
    
    .pharmacy-card-title {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }
    
    .on-duty-pharmacy-card .pharmacy-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .on-duty-pharmacy-card .pharmacy-details {
        margin: 15px 0;
    }
}

@media screen and (max-width: 480px) {
    .hadith-section::before {
        background-size: 60px 60px;
        opacity: 0.2;
    }
    
    .hadith-section {
        padding: 18px 20px;
    }
    
    .on-duty-main-card {
        padding: 15px;
    }
    
    .pharmacy-icon {
        font-size: 2.5rem;
    }
    
    .pharmacy-title {
        font-size: 1.3rem;
    }
    
    .pharmacy-info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .section-subtitle {
        font-size: 1.3rem;
    }
    
    .info-card-icon {
        font-size: 1.5rem;
    }
    
    /* Mobile styles for pharmacy cards */
    .on-duty-pharmacies-grid {
        gap: 15px;
        padding: 0 5px;
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
    
    .view-more-button {
        padding: 16px;
        font-size: 1rem;
    }
    
    .on-duty-pharmacy-card {
        padding: 20px 15px;
        min-height: 250px;
        border-radius: 15px;
    }
    
    .on-duty-pharmacy-card .pharmacy-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .pharmacy-card-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .on-duty-pharmacy-card .pharmacy-info-item {
        margin: 0;
        padding: 10px 8px;
        flex-direction: row;
        gap: 8px;
        font-size: 0.95rem;
    }
    
    .on-duty-pharmacy-card .pharmacy-info-item .info-icon {
        font-size: 1.1rem;
    }
    
    .on-duty-pharmacy-card .pharmacy-info-item .info-text {
        font-size: 0.9rem;
    }
    
    .on-duty-pharmacy-card .call-button-large {
        padding: 12px 20px;
        font-size: 1rem;
        margin-top: 15px;
    }
}

/* Additional styles for add page */
.add-form {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 30px auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Tajawal', Arial, sans-serif;
    font-size: 1rem;
    direction: rtl;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2D89EF;
    background-color: white;
}

.form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Tajawal', Arial, sans-serif;
    font-size: 1rem;
    direction: rtl;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

.form-textarea:focus {
    outline: none;
    border-color: #2D89EF;
    background-color: white;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background-color: #2D89EF;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Tajawal', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(45, 137, 239, 0.3);
}

.submit-button:hover {
    background-color: #1a5ca3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(45, 137, 239, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease;
}

.success-message p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

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

/* Notification message styles - Beautiful design matching the site */
.notification-message {
    position: fixed;
    top: 80px;
    right: 20px;
    left: 20px;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 28px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.15),
        0 3px 10px rgba(0,0,0,0.1);
    z-index: 10000;
    animation: slideDown 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 1.05rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.notification-message::before {
    content: '';
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    font-weight: bold;
}

.notification-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
    box-shadow: 
        0 8px 25px rgba(40, 167, 69, 0.25),
        0 3px 10px rgba(40, 167, 69, 0.15);
}

.notification-message.success::before {
    content: '✓';
    color: #28a745;
}

.notification-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
    box-shadow: 
        0 8px 25px rgba(220, 53, 69, 0.25),
        0 3px 10px rgba(220, 53, 69, 0.15);
}

.notification-message.error::before {
    content: '✕';
    color: #dc3545;
}

.notification-message.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 5px solid #ffc107;
    box-shadow: 
        0 8px 25px rgba(255, 193, 7, 0.25),
        0 3px 10px rgba(255, 193, 7, 0.15);
}

.notification-message.warning::before {
    content: '⚠';
    color: #ffc107;
}

.notification-message p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@media screen and (max-width: 768px) {
    .notification-message {
        top: 70px;
        right: 15px;
        left: 15px;
        padding: 16px 20px;
        font-size: 0.95rem;
        gap: 10px;
    }
    
    .notification-message::before {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .notification-message p {
        font-size: 0.95rem;
    }
    
    .add-form {
        padding: 20px;
        margin: 20px auto;
    }
    
    .form-input, .form-textarea {
        padding: 12px;
    }
    
    .submit-button {
        padding: 12px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .notification-message {
        top: 65px;
        right: 10px;
        left: 10px;
        padding: 14px 18px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .notification-message::before {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
    
    .notification-message p {
        font-size: 0.9rem;
    }
    
    .add-form {
        padding: 15px;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .success-message {
        padding: 15px;
    }
    
    .success-message p {
        font-size: 1rem;
    }
}

/* Additional styles for admin pages */
.admin-login-container {
    max-width: 500px;
    margin: 50px auto;
}

.admin-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.admin-add-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.admin-add-form-container .add-form {
    max-width: 100%;
    margin: 0;
}

.admin-search-container {
    margin-bottom: 20px;
}

.admin-search-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.admin-category-filter {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Tajawal', Arial, sans-serif;
    font-size: 1rem;
    direction: rtl;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease;
    min-width: 200px;
    flex: 1 1 auto;
}

.admin-category-filter:focus {
    outline: none;
    border-color: #2D89EF;
    background-color: white;
}

#adminCategoryFilter {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

.admin-on-duty-card {
    background: #ffffff;
    padding: 22px 26px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    max-width: 600px;
    margin: 25px auto;
    width: 100%;
    box-sizing: border-box;
}

.admin-section-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2D89EF;
    text-align: center;
    font-weight: 600;
}

.save-on-duty-btn {
    background: #2D89EF;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
    cursor: pointer;
}

.save-on-duty-btn:hover {
    background: #1e6fcb;
}

.admin-search-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#adminCategoryFilter {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

.admin-on-duty-card {
    background: #ffffff;
    padding: 22px 26px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    max-width: 600px;
    margin: 25px auto;
    width: 100%;
    box-sizing: border-box;
}

.admin-section-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2D89EF;
    text-align: center;
    font-weight: 600;
}

.save-on-duty-btn {
    background: #2D89EF;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
    cursor: pointer;
}

.save-on-duty-btn:hover {
    background: #1e6fcb;
}

.admin-search-input {
    flex: 1 1 auto;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Tajawal', Arial, sans-serif;
    font-size: 1rem;
    direction: rtl;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease;
}

.admin-search-input:focus {
    outline: none;
    border-color: #2D89EF;
    background-color: white;
}

.admin-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.admin-card h3 {
    color: #2D89EF;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.admin-card p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.admin-card-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.accept-button {
    background: linear-gradient(135deg, #2D89EF 0%, #1a6bc7 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(45, 137, 239, 0.3);
}

.accept-button:hover {
    background: linear-gradient(135deg, #1a6bc7 0%, #2D89EF 100%);
    box-shadow: 0 4px 12px rgba(45, 137, 239, 0.4);
    transform: translateY(-2px);
}

.reject-button, .delete-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.reject-button:hover, .delete-button:hover {
    background-color: #c82333;
}

.edit-button {
    background-color: #2D89EF;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.edit-button:hover {
    background-color: #1a5ca3;
}

.cancel-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 10px;
    width: 100%;
}

.cancel-button:hover {
    background-color: #5a6268;
}

@media screen and (max-width: 768px) {
    .admin-cards-container {
        grid-template-columns: 1fr;
    }
    
    .admin-section {
        padding: 15px;
    }
    
    .admin-search-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-search-input,
    .admin-category-filter {
        width: 100%;
        min-width: 100%;
        flex: 1 1 100%;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.close-btn {
    float: left;
    cursor: pointer;
    font-size: 22px;
    margin-bottom: 10px;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.modal-content button {
    background: #2D89EF;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 8px;
}

.admin-on-duty-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.admin-on-duty-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.admin-on-duty-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-on-duty-item-info {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below content size */
    width: 100%;
}

.admin-on-duty-item-info p {
    margin: 8px 0;
    font-size: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cancel-on-duty-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Tajawal', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-on-duty-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Shift Toggle Button Styles */
.shift-toggle-btn {
    background: linear-gradient(135deg, #2D89EF 0%, #1a6bc7 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Tajawal', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(45, 137, 239, 0.3);
}

.shift-toggle-btn:hover {
    background: linear-gradient(135deg, #1a6bc7 0%, #2D89EF 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 137, 239, 0.4);
}

.shift-toggle-btn.shift-morning {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.shift-toggle-btn.shift-morning:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.shift-toggle-btn.shift-evening {
    background: linear-gradient(135deg, #4B0082 0%, #6A5ACD 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(75, 0, 130, 0.3);
}

.shift-toggle-btn.shift-evening:hover {
    background: linear-gradient(135deg, #6A5ACD 0%, #4B0082 100%);
    box-shadow: 0 4px 12px rgba(75, 0, 130, 0.4);
}

/* Admin On-Duty Actions Container */
.admin-on-duty-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Shift Type Display in Admin Panel */
.shift-type-display {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Admin On-Duty Item Layout Update */
.admin-on-duty-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
}

.admin-on-duty-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #2D89EF;
}

@media screen and (min-width: 768px) {
    .admin-on-duty-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .admin-on-duty-item-info {
        min-width: 250px;
        width: auto;
    }
    
    .admin-on-duty-actions {
        width: auto;
        min-width: 200px;
    }
}

/* Responsive styles for small devices */
@media screen and (max-width: 767px) {
    .admin-on-duty-card {
        padding: 15px 18px;
        margin: 20px auto;
        border-radius: 10px;
    }
    
    .admin-on-duty-item {
        padding: 15px;
        gap: 12px;
    }
    
    .admin-on-duty-item-info {
        width: 100%;
        min-width: 0;
    }
    
    .admin-on-duty-item-info p {
        font-size: 14px;
        margin: 6px 0;
    }
    
    .admin-on-duty-actions {
        width: 100%;
    }
    
    .shift-toggle-btn,
    .cancel-on-duty-btn {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .shift-type-display {
        margin: 12px 0;
        justify-content: center;
    }
    
    .admin-section-title {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .admin-on-duty-card {
        padding: 12px 15px;
        margin: 15px auto;
    }
    
    .admin-on-duty-item {
        padding: 12px;
        gap: 10px;
        border-radius: 10px;
    }
    
    .admin-on-duty-item-info p {
        font-size: 13px;
        margin: 5px 0;
    }
    
    .shift-toggle-btn,
    .cancel-on-duty-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .admin-section-title {
        font-size: 16px;
    }
}

/* Footer styles */
.main-footer {
    background: #2D89EF;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.main-footer p {
    margin: 0;
}

/* Install App Prompt Styles */
.install-prompt {
    position: fixed;
    bottom: -100%;
    right: 0;
    left: 0;
    background: linear-gradient(135deg, #2D89EF 0%, #1a6bc7 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: bottom 0.3s ease-in-out;
    border-top: 3px solid rgba(255, 255, 255, 0.3);
}

.install-prompt.show {
    bottom: 0;
}

.install-prompt-content {
    max-width: 600px;
    margin: 0 auto;
}

.install-instructions {
    margin-bottom: 20px;
}

.install-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    color: white;
}

.install-text {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.install-steps {
    margin: 15px 0;
    padding-right: 25px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.install-steps li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.install-steps li strong {
    color: white;
    font-weight: 700;
}

.ios-share,
.android-menu {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin: 0 3px;
}

.install-prompt-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.install-btn-primary,
.install-btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-family: 'Tajawal', Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.install-btn-primary {
    background: white;
    color: #2D89EF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.install-btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.install-btn-primary:active {
    transform: translateY(0);
}

.install-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.install-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

@media screen and (max-width: 768px) {
    .install-prompt {
        padding: 18px 15px;
    }
    
    .install-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .install-text {
        font-size: 0.95rem;
    }
    
    .install-steps {
        font-size: 0.9rem;
        padding-right: 20px;
    }
    
    .install-prompt-actions {
        flex-direction: column;
    }
    
    .install-btn-primary,
    .install-btn-secondary {
        width: 100%;
        padding: 14px 20px;
    }
}

@media screen and (max-width: 480px) {
    .install-prompt {
        padding: 15px 12px;
    }
    
    .install-title {
        font-size: 1.1rem;
    }
    
    .install-steps {
        font-size: 0.85rem;
        padding-right: 18px;
    }
    
    .install-steps li {
        margin-bottom: 8px;
    }
}
