/* Custom styles for Product Request & Action Tracker */

/* Create directory structure if needed */
d:\Test APK\purchase tracker\assets\css\style.css

/* Main Styles */
body {
    background-color: #f5f5f5;
    padding-bottom: 70px; /* Space for the fixed bottom navbar */
}

/* Card Styles */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 500;
}

/* Badge Styles */
.priority-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.emergency-badge {
    background-color: #ff0000 !important;
    color: white;
}

.status-badge {
    margin-right: 5px;
    font-weight: normal;
}

/* Status Timeline */
.status-timeline {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    position: relative;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

.status-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.status-step.active {
    background-color: #0d6efd;
    color: white;
}

.status-step.completed {
    background-color: #198754;
    color: white;
}

/* Mobile Bottom Navigation */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
}

.bottom-navbar .nav-item {
    flex: 1;
    text-align: center;
}

.bottom-navbar .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6c757d;
    font-size: 0.8rem;
}

.bottom-navbar .nav-link.active {
    color: #0d6efd;
}

.bottom-navbar .nav-link i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

/* List Group Item Hover Effect */
.list-group-item-action:hover {
    transform: translateY(-3px);
    transition: transform 0.2s ease;
}

/* Dashboard Stats */
.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* For desktop */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .bottom-navbar {
        display: none;
    }
    
    .desktop-navbar {
        display: block !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* For tables */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Form Styles */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Comments Section */
.comment-bubble {
    border-radius: 18px;
    padding: 10px 15px;
}

.comment-bubble.mine {
    background-color: #e3f2fd;
    margin-left: 20%;
    border-top-right-radius: 0;
}

.comment-bubble.others {
    background-color: #f5f5f5;
    margin-right: 20%;
    border-top-left-radius: 0;
}

/* Custom file input */
.custom-file-button input[type=file] {
    margin-left: -2px !important;
}

.custom-file-button input[type=file]::-webkit-file-upload-button {
    display: none;
}

.custom-file-button input[type=file]::file-selector-button {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.alert {
    animation: fadeIn 0.5s ease;
}

/* File Attachment Styles */
.file-attachment {
    border-radius: 5px;
    padding: 10px;
    transition: all 0.2s ease;
}

.file-attachment:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.file-attachment .file-icon {
    text-align: center;
    width: 40px;
}

.file-attachment .file-info {
    flex: 1;
}

.file-attachment .image-preview img {
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.file-attachment .image-preview img:hover {
    transform: scale(1.02);
}

.file-attachment .file-actions {
    margin-top: 10px;
}

/* Metallic Profile Card Styles */
.profile-card-metallic {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(145deg, #2c3e50, #3498db);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
                inset 0 -5px 15px rgba(255, 255, 255, 0.1),
                inset 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    border: none;
    margin-top: 15px;
    margin-bottom: 25px;
}

.profile-card-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    z-index: 1;
}

.profile-card-content {
    position: relative;
    z-index: 2;
    padding: 70px 20px 20px;
}

.profile-avatar-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-info {
    padding: 15px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
                inset 0 0 5px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
}

/* Push Notification Styles */
#notification-status {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

#notification-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#notification-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#notification-status.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

#notification-status.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Notification Permission Prompt */
.notification-permission-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    max-width: 300px;
}

.notification-permission-prompt p {
    margin-bottom: 10px;
}

.notification-permission-prompt button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.notification-permission-prompt button#notification-yes {
    background-color: #007bff;
    color: white;
}

.notification-permission-prompt button#notification-no {
    background-color: #6c757d;
    color: white;
}

/* Media query to ensure it only shows on mobile */
@media (max-width: 767.98px) {
    .profile-card-metallic {
        margin-left: 10px;
        margin-right: 10px;
    }
}
