/* techXpress Theme CSS - Shared styles for consistent UI across the application */

/* Variables */
:root {
    --primary-color: #facc15;
    --primary-hover: #eab308;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --light-text: #f8f9fa;
    --secondary-text: #94a3b8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 1rem;
}

/* Common Layout Components */
.page-container {
    padding: 3rem 0;
    position: relative;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.page-header h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.page-header h1::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--primary-color);
    bottom: -8px;
    left: 25%;
    border-radius: 2px;
}

.page-header p {
    color: var(--secondary-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Panels & Cards */
.content-panel {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.content-panel::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(250, 204, 21, 0.03);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    z-index: 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-title i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.section-title .badge {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 0.75rem;
}

/* Form Elements */
.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.2rem 1rem 0.5rem;
    height: 3.5rem;
    color: var(--light-text);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(250, 204, 21, 0.25);
    background-color: rgba(15, 23, 42, 0.8);
}

.form-floating label {
    color: var(--secondary-text);
    padding: 0.75rem 1rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--primary-color);
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--secondary-text);
    z-index: 10;
}

.form-control:focus ~ .input-icon {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.text-danger {
    color: var(--danger-color) !important;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Form Sections */
.form-section {
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-icon {
    width: 36px;
    height: 36px;
    background: rgba(250, 204, 21, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-right: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light-text);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    width: 100%;
    padding: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-primary i {
    margin-right: 0.75rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    padding: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary i {
    margin-right: 0.5rem;
}

.btn-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.btn-danger i {
    margin-right: 0.35rem;
}

/* Summary Card */
.summary-card {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: sticky;
    top: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.summary-title i {
    margin-right: 0.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--secondary-text);
}

.summary-value {
    color: var(--light-text);
    font-weight: 500;
}

.summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

/* Item Cards */
.item-card {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(250, 204, 21, 0.3);
}

.item-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: var(--transition);
}

.item-card:hover .item-image {
    transform: scale(1.05);
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-name {
    color: var(--light-text);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.item-price {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: auto;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 5rem;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state-text {
    color: var(--secondary-text);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-light {
    color: var(--light-text) !important;
}

.text-secondary {
    color: var(--secondary-text) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-dark {
    background-color: var(--dark-bg) !important;
}

.bg-card {
    background-color: var(--card-bg) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.3rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .content-panel {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1.2rem;
    }
}

footer.bg-dark {
    background-color: #212529 !important;
} 