/* Trainingmatic Custom Styles */

/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Buttons */
.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

/* Course listings */
.course-card {
    height: 100%;
}

.course-card .card-body {
    display: flex;
    flex-direction: column;
}

.course-card .card-text {
    flex-grow: 1;
}

/* Dashboard panels */
.dashboard-stat {
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: white;
}

.dashboard-stat-primary {
    background-color: #0056b3;
}

.dashboard-stat-success {
    background-color: #28a745;
}

.dashboard-stat-info {
    background-color: #17a2b8;
}

.dashboard-stat-warning {
    background-color: #ffc107;
    color: #212529;
}

/* Video player */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Certificate styles */
.certificate-container {
    border: 10px solid #0056b3;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    background-color: #f8f9fa;
}

.certificate-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #0056b3;
}

.certificate-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

/* Identity verification */
.webcam-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

#webcam-video {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.capture-btn {
    margin-top: 10px;
}

/* Home page search filters */
.search-filters {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }
    
    .certificate-title {
        font-size: 24px;
    }
}
